1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

h264_refs: Do not print check_opcodes() return value

The return value provides no useful information and removing the printing
avoids the following warning:
libavcodec/h264_refs.c:788:15: warning: 'i' may be used uninitialized in this function [-Wuninitialized]
This commit is contained in:
Diego Biurrun 2013-04-27 18:49:54 +02:00
parent b963f021b6
commit 1b6f84a986

View File

@ -784,10 +784,10 @@ int ff_h264_decode_ref_pic_marking(H264Context *h, GetBitContext *gb,
h->mmco_index = mmco_index; h->mmco_index = mmco_index;
} else if (!first_slice && mmco_index >= 0 && } else if (!first_slice && mmco_index >= 0 &&
(mmco_index != h->mmco_index || (mmco_index != h->mmco_index ||
(i = check_opcodes(h->mmco, mmco_temp, mmco_index)))) { check_opcodes(h->mmco, mmco_temp, mmco_index))) {
av_log(h->avctx, AV_LOG_ERROR, av_log(h->avctx, AV_LOG_ERROR,
"Inconsistent MMCO state between slices [%d, %d, %d]\n", "Inconsistent MMCO state between slices [%d, %d]\n",
mmco_index, h->mmco_index, i); mmco_index, h->mmco_index);
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} }