changeset 5443:e0b458b3d1ae libavformat

Print extradata in case of failure. I had this in my local tree and it might be usefull for others ...
author michael
date Sun, 13 Dec 2009 16:20:00 +0000
parents 65a5773a23a5
children d424e2ef1b44
files rmdec.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rmdec.c	Sun Dec 13 15:55:07 2009 +0000
+++ b/rmdec.c	Sun Dec 13 16:20:00 2009 +0000
@@ -332,7 +332,9 @@
         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;
         }
     }