summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-12-13 16:20:00 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-12-13 16:20:00 +0000
commit005d9b57ad05acf7e8626467de8774c522182173 (patch)
tree8cc498d8ff7d37bb9913127f44b2b600829063ea
parentc3d15329443d5750832268bcc61689b738eb94e1 (diff)
Print extradata in case of failure. I had this in my local tree and it
might be usefull for others ... Originally committed as revision 20828 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/rmdec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index 67230a97fd..b6afef3e59 100644
--- a/libavformat/rmdec.c
+++ b/libavformat/rmdec.c
@@ -332,7 +332,9 @@ ff_rm_read_mdpr_codecdata (AVFormatContext *s, ByteIOContext *pb,
case 2: st->codec->codec_id = CODEC_ID_RV20; break;
case 3: st->codec->codec_id = CODEC_ID_RV30; break;
case 4: st->codec->codec_id = CODEC_ID_RV40; break;
- default: goto fail1;
+ default:
+ av_log(st->codec, AV_LOG_ERROR, "extra:%02X %02X %02X %02X %02X\n", ((uint8_t*)st->codec->extradata)[0], ((uint8_t*)st->codec->extradata)[1], ((uint8_t*)st->codec->extradata)[2], ((uint8_t*)st->codec->extradata)[3], ((uint8_t*)st->codec->extradata)[4]);
+ goto fail1;
}
}