[FFmpeg-cvslog] copy pts and format props between lavfi buffer and frame.
Robert Nagy
git at videolan.org
Tue Apr 17 16:26:41 CEST 2012
ffmpeg | branch: master | Robert Nagy <ronag89 at gmail.com> | Sat Apr 14 12:09:46 2012 +0200| [a80217a5eec821fa9027eaf59ace95187843d320] | committer: Michael Niedermayer
copy pts and format props between lavfi buffer and frame.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a80217a5eec821fa9027eaf59ace95187843d320
---
libavfilter/avcodec.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/libavfilter/avcodec.c b/libavfilter/avcodec.c
index e4cae9b..3581aef 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;
return 0;
}
@@ -86,6 +87,8 @@ int avfilter_fill_frame_from_video_buffer_ref(AVFrame *frame,
frame->sample_aspect_ratio = picref->video->sample_aspect_ratio;
frame->width = picref->video->w;
frame->height = picref->video->h;
+ frame->format = picref->format;
+ frame->pts = picref->pts;
return 0;
}
More information about the ffmpeg-cvslog
mailing list