[FFmpeg-devel] [PATCH] Copy pts and format props between lavfi buffer and frame

Michael Niedermayer michaelni at gmx.at
Sun Apr 15 11:15:12 CEST 2012


On Sat, Apr 14, 2012 at 12:26:05PM +0200, Robert Nagy wrote:
> 

>  avcodec.c |    3 +++
>  1 file changed, 3 insertions(+)
> c15559e3fb3c3ae4298eadda173462c5b339cb58  0001-copy-pts-and-format-props-between-lavfi-buffer-and-f.patch
> From 48b96065a319f6024f2421ab9fdd45a24ad4c14c Mon Sep 17 00:00:00 2001
> From: Robert Nagy <ronag89 at gmail.com>
> Date: Sat, 14 Apr 2012 12:09:46 +0200
> Subject: [PATCH] copy pts and format props between lavfi buffer and frame.
> 
> ---
>  libavfilter/avcodec.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/libavfilter/avcodec.c b/libavfilter/avcodec.c
> index e4cae9b..5e31e09 100644
> --- a/libavfilter/avcodec.c
> +++ b/libavfilter/avcodec.c
> @@ -66,6 +66,7 @@ int avfilter_fill_frame_from_audio_buffer_ref(AVFrame *frame,
>      frame->pkt_pos    = samplesref->pos;
>      frame->format     = samplesref->format;
>      frame->nb_samples = samplesref->audio->nb_samples;
> +	frame->pts		  = samplesref->pts;

tabs
and it would be great if the timebases could be checked to match
but i think the AVCodecContext one isnt accessible easily from here

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The worst form of inequality is to try to make unequal things equal.
-- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120415/770d3795/attachment.asc>


More information about the ffmpeg-devel mailing list