On Tue, Feb 28, 2012 at 12:56 AM, Kieran Kunhya <[email protected]> wrote:
>> AVCodecContext->get_buffer()?
>
> http://git.mansr.com/?p=omapfbplay;a=blob;f=avcodec.c is a nice
> example of how to use it.

Took a look, and it's indeed good, except:

1) Uses deprecated age field
2) Doesn't set pkt_pts

I wonder why would each and every client need to do:

        if (avctx->pkt)
                pic->pkt_pts = avctx->pkt->pts;
        else
                pic->pkt_pts = AV_NOPTS_VALUE;

Cheers.

-- 
Felipe Contreras
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to