changeset 7:47e502ac6349 libavformat

AVVideoFrame -> AVFrame
author michaelni
date Mon, 09 Dec 2002 12:03:43 +0000
parents b681d968f227
children 995bb04e02f1
files asf.c avienc.c ffm.c rm.c utils.c
diffstat 5 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/asf.c	Mon Dec 09 02:53:55 2002 +0000
+++ b/asf.c	Mon Dec 09 12:03:43 2002 +0000
@@ -556,7 +556,7 @@
     int val;
 
     val = stream->num;
-    if (s->streams[val - 1]->codec.coded_picture->key_frame /* && frag_offset == 0 */)
+    if (s->streams[val - 1]->codec.coded_frame->key_frame /* && frag_offset == 0 */)
         val |= 0x80;
     put_byte(pb, val);
     put_byte(pb, stream->seq);
--- a/avienc.c	Mon Dec 09 02:53:55 2002 +0000
+++ b/avienc.c	Mon Dec 09 12:03:43 2002 +0000
@@ -320,7 +320,7 @@
     if (enc->codec_type == CODEC_TYPE_VIDEO) {
         tag[2] = 'd';
         tag[3] = 'c';
-        flags = enc->coded_picture->key_frame ? 0x10 : 0x00;
+        flags = enc->coded_frame->key_frame ? 0x10 : 0x00;
     } else {
         tag[2] = 'w';
         tag[3] = 'b';
--- 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;
--- a/rm.c	Mon Dec 09 02:53:55 2002 +0000
+++ b/rm.c	Mon Dec 09 12:03:43 2002 +0000
@@ -333,7 +333,7 @@
     /* XXX: suppress this malloc */
     buf1= (UINT8*) av_malloc( size * sizeof(UINT8) );
     
-    write_packet_header(s, stream, size, stream->enc->key_frame);
+    write_packet_header(s, stream, size, stream->enc->coded_frame->key_frame);
     
     /* for AC3, the words seems to be reversed */
     for(i=0;i<size;i+=2) {
@@ -352,7 +352,7 @@
     RMContext *rm = s->priv_data;
     ByteIOContext *pb = &s->pb;
     StreamInfo *stream = rm->video_stream;
-    int key_frame = stream->enc->coded_picture->key_frame;
+    int key_frame = stream->enc->coded_frame->key_frame;
 
     /* XXX: this is incorrect: should be a parameter */
 
--- a/utils.c	Mon Dec 09 02:53:55 2002 +0000
+++ b/utils.c	Mon Dec 09 12:03:43 2002 +0000
@@ -458,7 +458,7 @@
     AVCodec *codec;
     AVStream *st;
     AVPacket *pkt;
-    AVVideoFrame picture;
+    AVFrame picture;
     AVPacketList *pktl=NULL, **ppktl;
     short samples[AVCODEC_MAX_AUDIO_FRAME_SIZE / 2];
     UINT8 *ptr;