1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

lavfi: use getter/setter functions for AVFrame.pkt_pos

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-05-28 23:43:51 +02:00
parent ea60a11e8e
commit 59a78290b6
2 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@ int avfilter_fill_frame_from_audio_buffer_ref(AVFrame *frame,
memcpy(frame->data, samplesref->data, sizeof(frame->data));
memcpy(frame->linesize, samplesref->linesize, sizeof(frame->linesize));
frame->pkt_pos = samplesref->pos;
av_frame_set_pkt_pos(frame, samplesref->pos);
frame->format = samplesref->format;
frame->nb_samples = samplesref->audio->nb_samples;
frame->pts = samplesref->pts;
@ -78,7 +78,7 @@ int avfilter_fill_frame_from_video_buffer_ref(AVFrame *frame,
memcpy(frame->data, picref->data, sizeof(frame->data));
memcpy(frame->linesize, picref->linesize, sizeof(frame->linesize));
frame->pkt_pos = picref->pos;
av_frame_set_pkt_pos(frame, picref->pos);
frame->interlaced_frame = picref->video->interlaced;
frame->top_field_first = picref->video->top_field_first;
frame->key_frame = picref->video->key_frame;

View File

@ -166,7 +166,7 @@ void avfilter_unref_bufferp(AVFilterBufferRef **ref)
int avfilter_copy_frame_props(AVFilterBufferRef *dst, const AVFrame *src)
{
dst->pts = src->pts;
dst->pos = src->pkt_pos;
dst->pos = av_frame_get_pkt_pos(src);
dst->format = src->format;
switch (dst->type) {