From 58dc8bbca48578f1be44f39c45c30e5796d8fc9f Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 10 Jul 2016 20:59:15 +0200 Subject: [PATCH] avcodec/h264_refs: Assert that op is 0-2 Coverity fails to realize this Signed-off-by: Michael Niedermayer --- libavcodec/h264_refs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/h264_refs.c b/libavcodec/h264_refs.c index 444849ae11..7fafb826d7 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) {