diff swf.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 a58a8a53eb46
line wrap: on
line diff
--- a/swf.c	Sat Nov 30 17:16:32 2002 +0000
+++ b/swf.c	Wed Dec 04 10:04:03 2002 +0000
@@ -482,6 +482,8 @@
                 st = av_mallocz(sizeof(AVStream));
                 if (!st)
                     return -ENOMEM;
+                avcodec_get_context_defaults(&st->codec);
+
                 if (v & 0x01)
                     st->codec.channels = 2;
                 else