[FFmpeg-cvslog] h264_refs: Do not print check_opcodes() return value

Diego Biurrun git at videolan.org
Sun Apr 28 13:46:40 CEST 2013


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Sat Apr 27 18:49:54 2013 +0200| [1b6f84a98665a15130e969fd6b460a05d50090c1] | committer: Diego Biurrun

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]

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1b6f84a98665a15130e969fd6b460a05d50090c1
---

 libavcodec/h264_refs.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavcodec/h264_refs.c b/libavcodec/h264_refs.c
index c965033..c791973 100644
--- a/libavcodec/h264_refs.c
+++ b/libavcodec/h264_refs.c
@@ -784,10 +784,10 @@ int ff_h264_decode_ref_pic_marking(H264Context *h, GetBitContext *gb,
         h->mmco_index = mmco_index;
     } else if (!first_slice && mmco_index >= 0 &&
                (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,
-               "Inconsistent MMCO state between slices [%d, %d, %d]\n",
-               mmco_index, h->mmco_index, i);
+               "Inconsistent MMCO state between slices [%d, %d]\n",
+               mmco_index, h->mmco_index);
         return AVERROR_INVALIDDATA;
     }
 



More information about the ffmpeg-cvslog mailing list