[FFmpeg-devel] [PATCH] avdevice/v4l2: Change assert type when	format not supported
    Andriy Gelman 
    andriy.gelman at gmail.com
       
    Sun Nov  3 18:08:41 EET 2019
    
    
  
From: Andriy Gelman <andriy.gelman at gmail.com>
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
    
    
More information about the ffmpeg-devel
mailing list