Message ID | 20191104005723.31954-1-andriy.gelman@gmail.com |
---|---|
State | Superseded |
Headers | show |
Andriy Gelman (12019-11-03):
> The new behaviour is to return an AVERROR(EINVAL) error code.
This is not obvious in the code at all: please check it with an
av_assert0().
Regards,
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c index 446a243cf8..a6ba015a86 100644 --- a/libavdevice/v4l2.c +++ b/libavdevice/v4l2.c @@ -811,7 +811,6 @@ static int device_try_init(AVFormatContext *ctx, } *codec_id = ff_fmt_v4l2codec(*desired_format); - av_assert0(*codec_id != AV_CODEC_ID_NONE); return ret; }