diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-05-29 01:43:51 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-05-29 01:45:17 +0400 |
commit | 59a78290b6fee4b52a28a43440dff6880d3102c2 (patch) | |
tree | 35f3513f229f3a92beac7a9b9b7c973ed6e0afd4 /libavfilter/avcodec.c | |
parent | ea60a11e8e2d818e8e56da4da3ff38e23a12bdff (diff) |
lavfi: use getter/setter functions for AVFrame.pkt_pos
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/avcodec.c')
-rw-r--r-- | libavfilter/avcodec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/avcodec.c b/libavfilter/avcodec.c index 3f79c20dff..0d87808e6c 100644 --- a/libavfilter/avcodec.c +++ b/libavfilter/avcodec.c @@ -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; |