comparison raw.c @ 3080:16eff725382f libavcodec

Set interlaced_frame and top_field_first according to coded_frame. patch by Luca Abeni, lucabe72 **at&& email ^^dot## it
author diego
date Thu, 02 Feb 2006 09:24:13 +0000
parents 385e54795a9e
children 25f6245381be
comparison
equal deleted inserted replaced
3079:545342e01885 3080:16eff725382f
119 uint8_t *buf, int buf_size) 119 uint8_t *buf, int buf_size)
120 { 120 {
121 RawVideoContext *context = avctx->priv_data; 121 RawVideoContext *context = avctx->priv_data;
122 int bytesNeeded; 122 int bytesNeeded;
123 123
124 AVFrame * frame = (AVFrame *) data;
124 AVPicture * picture = (AVPicture *) data; 125 AVPicture * picture = (AVPicture *) data;
126
127 frame->interlaced_frame = avctx->coded_frame->interlaced_frame;
128 frame->top_field_first = avctx->coded_frame->top_field_first;
125 129
126 /* Early out without copy if packet size == frame size */ 130 /* Early out without copy if packet size == frame size */
127 if (buf_size == context->length && context->p == context->buffer) { 131 if (buf_size == context->length && context->p == context->buffer) {
128 avpicture_fill(picture, buf, avctx->pix_fmt, avctx->width, avctx->height); 132 avpicture_fill(picture, buf, avctx->pix_fmt, avctx->width, avctx->height);
129 flip(avctx, picture); 133 flip(avctx, picture);