diff sierravmd.c @ 2771:d52c718e83f9 libavformat

Use dynamically allocated ByteIOContext in AVFormatContext patch by: Bj«Órn Axelsson, bjorn d axelsson a intinor d se thread: [PATCH] Remove static ByteIOContexts, 06 nov 2007
author andoma
date Wed, 21 Nov 2007 07:41:00 +0000
parents 2e7affad5b28
children a086b58a3336
line wrap: on
line diff
--- a/sierravmd.c	Mon Nov 19 20:28:11 2007 +0000
+++ b/sierravmd.c	Wed Nov 21 07:41:00 2007 +0000
@@ -72,7 +72,7 @@
                            AVFormatParameters *ap)
 {
     VmdDemuxContext *vmd = s->priv_data;
-    ByteIOContext *pb = &s->pb;
+    ByteIOContext *pb = s->pb;
     AVStream *st, *vst;
     unsigned int toc_offset;
     unsigned char *raw_frame_table;
@@ -245,7 +245,7 @@
                            AVPacket *pkt)
 {
     VmdDemuxContext *vmd = s->priv_data;
-    ByteIOContext *pb = &s->pb;
+    ByteIOContext *pb = s->pb;
     int ret = 0;
     vmd_frame_t *frame;