changeset 6416:e60cca9e99a3 libavformat

Insert info from extradata into header
author bindhammer
date Thu, 26 Aug 2010 10:03:11 +0000
parents d2ca6ecc8b43
children d2d2972c9715
files a64.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/a64.c	Thu Aug 26 10:03:09 2010 +0000
+++ b/a64.c	Thu Aug 26 10:03:11 2010 +0000
@@ -45,12 +45,12 @@
     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: