aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/avcodec.c
diff options
context:
space:
mode:
authorRobert Nagy <ronag89@gmail.com>2012-04-14 12:09:46 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-04-17 16:07:23 +0200
commita80217a5eec821fa9027eaf59ace95187843d320 (patch)
tree0b158f19b966ff51818492b2416b338af97486e7 /libavfilter/avcodec.c
parentc7c976c6d7051804f96e3106688c1963d1238ae0 (diff)
downloadffmpeg-a80217a5eec821fa9027eaf59ace95187843d320.tar.gz
copy pts and format props between lavfi buffer and frame.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/avcodec.c')
-rw-r--r--libavfilter/avcodec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/avcodec.c b/libavfilter/avcodec.c
index e4cae9b3a6..3581aef83a 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;
}