[FFmpeg-devel] [PATCH] In the rawvideo decoder, set pkt_pts in the output frame.

Michael Niedermayer michaelni
Sat Jan 29 00:30:04 CET 2011


On Fri, Jan 28, 2011 at 11:23:00AM -0500, Ronald S. Bultje wrote:
> Hi,
> 
> On Thu, Jan 27, 2011 at 3:26 PM, Stefano Sabatini
> <stefano.sabatini-lala at poste.it> wrote:
> > ---
> > ?libavcodec/rawdec.c | ? ?1 +
> > ?1 files changed, 1 insertions(+), 0 deletions(-)
> >
> > diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c
> > index c664207..b482e7a 100644
> > --- a/libavcodec/rawdec.c
> > +++ b/libavcodec/rawdec.c
> > @@ -124,6 +124,7 @@ static int raw_decode(AVCodecContext *avctx,
> > ? ? frame->interlaced_frame = avctx->coded_frame->interlaced_frame;
> > ? ? frame->top_field_first = avctx->coded_frame->top_field_first;
> > ? ? frame->reordered_opaque = avctx->reordered_opaque;
> > + ? ?frame->pkt_pts ? ? ? ? ?= avctx->pkt->pts;
> >
> > ? ? //2bpp and 4bpp raw in avi and mov (yes this is ugly ...)
> > ? ? if (context->buffer) {
> > --
> > 1.7.2.3
> 
> Why doesn't rawvideo use get_buffer()? But since it already sets

because it doesnt need a buffer.

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Awnsering whenever a program halts or runs forever is
On a turing machine, in general impossible (turings halting problem).
On any real computer, always possible as a real computer has a finite number
of states N, and will either halt in less than N cycles or never halt.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110129/af9ec55e/attachment.pgp>



More information about the ffmpeg-devel mailing list