diff ogg2.c @ 820:feca73904e67 libavformat

changing AVCodecContext codec -> *codec in AVStream so additions to AVCodecContext dont randomize AVStream and break binary compatibility
author michael
date Sun, 17 Jul 2005 22:24:36 +0000
parents ed249b9caa2f
children 66cc656ea404
line wrap: on
line diff
--- a/ogg2.c	Sun Jul 17 00:28:12 2005 +0000
+++ b/ogg2.c	Sun Jul 17 22:24:36 2005 +0000
@@ -430,7 +430,7 @@
     ogg_t *ogg = s->priv_data;
     ogg_stream_t *os = ogg->streams + i;
     AVStream *st = s->streams[i];
-    AVCodecContext *codec = &st->codec;
+    AVCodecContext *codec = st->codec;
     uint64_t pts = AV_NOPTS_VALUE;
 
     if(os->codec->gptopts){
@@ -537,7 +537,7 @@
     for (i = 0; i < ogg->nstreams; i++){
         av_free (ogg->streams[i].buf);
         av_free (ogg->streams[i].private);
-        av_freep (&s->streams[i]->codec.extradata);
+        av_freep (&s->streams[i]->codec->extradata);
     }
     av_free (ogg->streams);
     return 0;