[FFmpeg-devel] [PATCH] movie video source

Michael Niedermayer michaelni
Sat Jan 1 02:22:17 CET 2011


On Fri, Dec 31, 2010 at 04:35:30PM +0100, Stefano Sabatini wrote:
> On date Thursday 2010-12-30 01:03:38 +0100, Michael Niedermayer encoded:
> > On Tue, Dec 28, 2010 at 02:42:33PM +0100, Stefano Sabatini wrote:
[...]
> > > +        // Is this a packet from the video stream?
> > > +        if (packet.stream_index == movie->stream_idx) {
> > > +            // Decode video frame
> > > +            avcodec_decode_video2(movie->codec_ctx, movie->frame, &frame_finished, &packet);
> > > +
> > > +            // Did we get a video frame?
> > > +            if (frame_finished) {
> > > +                movie->picref =
> > > +                    avfilter_get_video_buffer_ref_from_arrays(movie->frame->data, movie->frame->linesize,
> > > +                                                              AV_PERM_READ,
> > > +                                                              outlink->format, outlink->w, outlink->h);
>  
> > > +                movie->picref->pts = packet.pts;
> > 
> > this is wrong
> > 
> > 
> > > +                movie->picref->pos = packet.pos;
> > 
> > so is this
> 
> wtf why?

see your favorit video player or reordered_opaque

[...]
-- 
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/20110101/b81d01bc/attachment.pgp>



More information about the ffmpeg-devel mailing list