diff options
author | Robert Nagy <ronag89@gmail.com> | 2012-04-14 12:09:46 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-04-17 16:07:23 +0200 |
commit | a80217a5eec821fa9027eaf59ace95187843d320 (patch) | |
tree | 0b158f19b966ff51818492b2416b338af97486e7 /libavfilter/avcodec.c | |
parent | c7c976c6d7051804f96e3106688c1963d1238ae0 (diff) | |
download | ffmpeg-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.c | 3 |
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; } |