Skip to content

Commit 42bbc2a

Browse files
committed
vdisp/pipe: do not announce VC_NONE support
If using transcoding reflector, eg.: `hd-rum-transcode 8M 5004 -c libavcodec -P 6004 100:1` pipe is used, which advertised VC_NONE, for which assertion at the beginning of get_pixfmt_desc() failed.
1 parent d7e64a0 commit 42bbc2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/video_display/pipe.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ get_codecs(struct state_pipe *s, void *val, size_t *len)
201201
}
202202
auto *out = (codec_t *) val;
203203
const void *end = (char *) val + *len;
204-
for (int i = 0; i < VIDEO_CODEC_COUNT; ++i) {
204+
for (int i = VC_FIRST; i < VIDEO_CODEC_COUNT; ++i) {
205205
const auto c = (codec_t) i;
206206
if (is_codec_opaque(c)) {
207207
continue;

0 commit comments

Comments
 (0)