aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-01-20 20:01:39 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-01-21 23:16:14 +0100
commit75aa373bec58dd65cca6006a04c89c03d935ec83 (patch)
tree0dc20bb2f38060c9c52fe594afee85e4250073e9
parentbec97981badcaf5f632ddd043bf016c4f3f18361 (diff)
downloadffmpeg-75aa373bec58dd65cca6006a04c89c03d935ec83.tar.gz
h264: print mismatching opcode details in check_opcodes()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit dcbe15813ed09cf491e75a21cce0e751f5bc2b34) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/h264_refs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/h264_refs.c b/libavcodec/h264_refs.c
index 9e9f9e69d1..d5b9633c0c 100644
--- a/libavcodec/h264_refs.c
+++ b/libavcodec/h264_refs.c
@@ -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;