h264: print mismatching opcode details in check_opcodes()
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 20 Jan 2013 19:01:39 +0000 (20:01 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 21 Jan 2013 22:16:14 +0000 (23:16 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit dcbe15813ed09cf491e75a21cce0e751f5bc2b34)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264_refs.c

index 9e9f9e6..d5b9633 100644 (file)
@@ -485,8 +485,11 @@ static int check_opcodes(MMCO *mmco1, MMCO *mmco2, int n_mmcos)
     int i;
 
     for (i = 0; i < n_mmcos; i++) {
-        if (mmco1[i].opcode != mmco2[i].opcode)
+        if (mmco1[i].opcode != mmco2[i].opcode) {
+            av_log(NULL, AV_LOG_ERROR, "MMCO opcode [%d, %d] at %d mismatches between slices\n",
+                   mmco1[i].opcode, mmco2[i].opcode, i);
             return -1;
+        }
     }
 
     return 0;