diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-09-12 12:14:39 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-09-12 12:33:44 +0200 |
commit | 5bbffe3412c1c34873d83d3fb80b379bb6e53d3f (patch) | |
tree | 4cadfb698b9ce1481affe22e4799b367bcc6218b | |
parent | 025f75c3ad1a4efc013bf3656b78952480fb90f7 (diff) | |
download | ffmpeg-5bbffe3412c1c34873d83d3fb80b379bb6e53d3f.tar.gz |
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@niedermayer.cc>
-rw-r--r-- | libavcodec/h264_refs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264_refs.c b/libavcodec/h264_refs.c index 8011413d24..97bf588b51 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) { |