[FFmpeg-devel] [PATCH] Implement frei0r source.

Michael Niedermayer michaelni
Thu Nov 25 18:18:16 CET 2010


On Wed, Nov 24, 2010 at 01:38:10AM +0100, Stefano Sabatini wrote:
[...]

> +static int source_request_frame(AVFilterLink *inlink)

outlink


> +{
> +    Frei0rContext *frei0r = inlink->src->priv;
> +    AVFilterBufferRef *picref = avfilter_get_video_buffer(inlink, AV_PERM_WRITE, inlink->w, inlink->h);
> +    picref->video->pixel_aspect = (AVRational) {1, 1};

> +    picref->pts = av_rescale_q(frei0r->pts++, frei0r->time_base, inlink->time_base);

a source filter should never need timestamp rescaling


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

Freedom in capitalist society always remains about the same as it was in
ancient Greek republics: Freedom for slave owners. -- Vladimir Lenin
-------------- 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/20101125/54240ebf/attachment.pgp>



More information about the ffmpeg-devel mailing list