OSDN Git Service

Insert info from extradata into header
authorTobias Bindhammer <tobias.bindhammer@uni-ulm.de>
Thu, 26 Aug 2010 10:03:11 +0000 (10:03 +0000)
committerTobias Bindhammer <tobias.bindhammer@uni-ulm.de>
Thu, 26 Aug 2010 10:03:11 +0000 (10:03 +0000)
Originally committed as revision 24943 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/a64.c

index ad41cdc..4b60a4c 100644 (file)
@@ -45,12 +45,12 @@ static int a64_write_header(struct AVFormatContext *s)
     switch (avctx->codec->id) {
     case CODEC_ID_A64_MULTI:
         header[2] = 0x00;
-        header[3] = 4;
+        header[3] = AV_RB32(avctx->extradata+0);
         header[4] = 2;
         break;
     case CODEC_ID_A64_MULTI5:
         header[2] = 0x01;
-        header[3] = 4;
+        header[3] = AV_RB32(avctx->extradata+0);
         header[4] = 3;
         break;
     default: