copy pts and format props between lavfi buffer and frame.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Robert Nagy 2012-04-14 12:09:46 +02:00 committed by Michael Niedermayer
parent c7c976c6d7
commit a80217a5ee
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}