[Ffmpeg-devel] [Ffmpeg-devel-old] Questionaboutinterlaced_frame and top_field_first

Luca Abeni lucabe72
Mon Jan 30 12:10:18 CET 2006

Hi all,

On Mon, 2006-01-30 at 10:17 +0100, Luca Abeni wrote:
> So, I think raw_decode() should be fixed to copy the fields form
> coded_frame to the decoded frame... Or am I misunderstanding how things
> work?
> BTW, I see that raw_decode() does this:
> static int raw_decode(AVCodecContext *avctx,
>                             void *data, int *data_size,
>                             uint8_t *buf, int buf_size)
> {
>     RawVideoContext *context = avctx->priv_data;
>     int bytesNeeded;
>     AVPicture * picture = (AVPicture *) data;
> [...]
> I think this "AVPicture * picture" should be changed in "AVFrame *",
> right?
> I'll try to patch raw.c in such way, to see if this idea works.
Ok, I did this, and it works. I attach the patch for libavcodec/raw.c

If the patch is accepted and applied, I think libavformat/yuv4mpeg.c
(and maybe other) can be patched to take advantage of it and correctly
set interlaced_frame and top_field_first.

Copy this in your signature, if you think it is important:
                               N O    W A R ! ! !

 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 Logos Finanziaria SPA. Societ? di credito ad erogazione diretta. Fino a 30.000 euro in 24 ore! Clicca e scopri come
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2909&d=30-1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: raw.diff
Type: text/x-patch
Size: 744 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060130/5ef6d35e/attachment.bin>

More information about the ffmpeg-devel mailing list