[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec raw.c,1.18,1.19
Diego Biurrun CVS
diego
Thu Feb 2 10:24:16 CET 2006
Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv3718/libavcodec
Modified Files:
raw.c
Log Message:
Set interlaced_frame and top_field_first according to coded_frame.
patch by Luca Abeni, lucabe72 **at&& email ^^dot## it
Index: raw.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/raw.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- raw.c 31 Jan 2006 00:17:13 -0000 1.18
+++ raw.c 2 Feb 2006 09:24:13 -0000 1.19
@@ -121,8 +121,12 @@
RawVideoContext *context = avctx->priv_data;
int bytesNeeded;
+ AVFrame * frame = (AVFrame *) data;
AVPicture * picture = (AVPicture *) data;
+ frame->interlaced_frame = avctx->coded_frame->interlaced_frame;
+ frame->top_field_first = avctx->coded_frame->top_field_first;
+
/* Early out without copy if packet size == frame size */
if (buf_size == context->length && context->p == context->buffer) {
avpicture_fill(picture, buf, avctx->pix_fmt, avctx->width, avctx->height);
More information about the ffmpeg-cvslog
mailing list