Skip to content
Snippets Groups Projects
Commit 5bbffe34 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

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: default avatarMichael Niedermayer <michael@niedermayer.cc>
parent 025f75c3
No related branches found
No related tags found
No related merge requests found
...@@ -370,7 +370,7 @@ int ff_h264_build_ref_list(H264Context *h, H264SliceContext *sl) ...@@ -370,7 +370,7 @@ int ff_h264_build_ref_list(H264Context *h, H264SliceContext *sl)
break; break;
} }
default: default:
av_assert1(0); av_assert0(0);
} }
if (i < 0) { if (i < 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment