diff avidec.c @ 5:39c4c4336486 libavformat

cleanup adding AVVideoFrame moving quality, pict_type, key_frame, qscale_table, ... to AVVideoFrame removing obsolete variables in AVCodecContext skiping of MBs in b frames correctly initalizing AVCodecContext picture buffer cleanup
author michaelni
date Wed, 04 Dec 2002 10:04:03 +0000
parents 05318cf2e886
children 8a5285a0ca2f
line wrap: on
line diff
--- a/avidec.c	Sat Nov 30 17:16:32 2002 +0000
+++ b/avidec.c	Wed Dec 04 10:04:03 2002 +0000
@@ -103,6 +103,8 @@
                 AVStream *st = av_mallocz(sizeof(AVStream));
                 if (!st)
                     goto fail;
+                avcodec_get_context_defaults(&st->codec);
+
                 s->streams[i] = st;
 	    }
             url_fskip(pb, size - 7 * 4);