diff ffm.c @ 7:47e502ac6349 libavformat

AVVideoFrame -> AVFrame
author michaelni
date Mon, 09 Dec 2002 12:03:43 +0000
parents b681d968f227
children f17e285df237
line wrap: on
line diff
--- a/ffm.c	Mon Dec 09 02:53:55 2002 +0000
+++ b/ffm.c	Mon Dec 09 12:03:43 2002 +0000
@@ -232,7 +232,7 @@
     /* packet size & key_frame */
     header[0] = stream_index;
     header[1] = 0;
-    if (st->codec.coded_picture && st->codec.coded_picture->key_frame)
+    if (st->codec.coded_frame->key_frame) //if st->codec.coded_frame==NULL then there is a bug somewhere else
         header[1] |= FLAG_KEY_FRAME;
     header[2] = (size >> 16) & 0xff;
     header[3] = (size >> 8) & 0xff;