[FFmpeg-cvslog] avcodec/h264_refs: Change default case to av_assert0() to suppress warning

Michael Niedermayer git at videolan.org
Mon Sep 12 13:37:49 EEST 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Mon Sep 12 12:14:39 2016 +0200| [5bbffe3412c1c34873d83d3fb80b379bb6e53d3f] | committer: Michael Niedermayer

avcodec/h264_refs: Change default case to av_assert0() to suppress warning

Should fix "libavcodec/h264_refs.c:372:13: warning: variable 'i' is used uninitialized whenever switch default is taken"

Found-by: durandal_17
Suggested-by: jkqxz
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5bbffe3412c1c34873d83d3fb80b379bb6e53d3f
---

 libavcodec/h264_refs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/h264_refs.c b/libavcodec/h264_refs.c
index 8011413..97bf588 100644
--- a/libavcodec/h264_refs.c
+++ b/libavcodec/h264_refs.c
@@ -370,7 +370,7 @@ int ff_h264_build_ref_list(H264Context *h, H264SliceContext *sl)
                 break;
             }
             default:
-                av_assert1(0);
+                av_assert0(0);
             }
 
             if (i < 0) {



More information about the ffmpeg-cvslog mailing list