[FFmpeg-cvslog] avcodec/h264_refs: Assert that op is 0-2

Michael Niedermayer git at videolan.org
Sun Jul 10 22:03:14 CEST 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sun Jul 10 20:59:15 2016 +0200| [58dc8bbca48578f1be44f39c45c30e5796d8fc9f] | committer: Michael Niedermayer

avcodec/h264_refs: Assert that op is 0-2

Coverity fails to realize this

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 libavcodec/h264_refs.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/h264_refs.c b/libavcodec/h264_refs.c
index 444849a..7fafb82 100644
--- a/libavcodec/h264_refs.c
+++ b/libavcodec/h264_refs.c
@@ -368,6 +368,8 @@ int ff_h264_build_ref_list(H264Context *h, H264SliceContext *sl)
                 }
                 break;
             }
+            default:
+                av_assert1(0);
             }
 
             if (i < 0) {



More information about the ffmpeg-cvslog mailing list