From: Andriy Gelman <[email protected]>
Currently an av_assert0 is triggered when a target format is not
supported by a v4l2 device. Replace by av_assert1 to fix this issue.
Fixes #6629.
---
libavdevice/v4l2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index 446a243cf8..05a8d3d337 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -811,7 +811,7 @@ static int device_try_init(AVFormatContext *ctx,
}
*codec_id = ff_fmt_v4l2codec(*desired_format);
- av_assert0(*codec_id != AV_CODEC_ID_NONE);
+ av_assert1(*codec_id != AV_CODEC_ID_NONE);
return ret;
}
--
2.23.0
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".