summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-06-21 13:24:41 +0200
committerDiego Biurrun <diego@biurrun.de>2016-06-23 14:16:14 +0200
commit3c84eaae9da0dc450ae99c65bb6b9865e3ba7fad (patch)
treed70d8a4a6d2fc3609a1474a77bf0694478639986
parent4dbfcd07570a9e45e9597561023adb6da26f27f6 (diff)
h264: Eliminate unused but set variable
libavcodec/h264_slice.c:1384:9: warning: variable 'droppable' set but not used
-rw-r--r--libavcodec/h264_slice.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c
index 2b7e0885db..aa53570185 100644
--- a/libavcodec/h264_slice.c
+++ b/libavcodec/h264_slice.c
@@ -1378,8 +1378,7 @@ static int h264_slice_header_parse(H264SliceContext *sl, const H2645NAL *nal,
const PPS *pps;
int ret;
unsigned int slice_type, tmp, i;
- int field_pic_flag, bottom_field_flag;
- int droppable, picture_structure;
+ int field_pic_flag, bottom_field_flag, picture_structure;
sl->first_mb_addr = get_ue_golomb(&sl->gb);
@@ -1430,7 +1429,6 @@ static int h264_slice_header_parse(H264SliceContext *sl, const H2645NAL *nal,
sl->mb_mbaff = 0;
- droppable = nal->ref_idc == 0;
if (sps->frame_mbs_only_flag) {
picture_structure = PICT_FRAME;
} else {