[FFmpeg-cvslog] lavfi: use getter/setter functions for AVFrame.pkt_pos
Michael Niedermayer
git at videolan.org
Thu Jun 7 01:44:14 CEST 2012
ffmpeg | branch: release/0.11 | Michael Niedermayer <michaelni at gmx.at> | Mon May 28 23:43:51 2012 +0200| [c64bfd7c3d231348b228d4d7260ffeee02995996] | committer: Michael Niedermayer
lavfi: use getter/setter functions for AVFrame.pkt_pos
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 59a78290b6fee4b52a28a43440dff6880d3102c2)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c64bfd7c3d231348b228d4d7260ffeee02995996
---
libavfilter/avcodec.c | 4 ++--
libavfilter/buffer.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavfilter/avcodec.c b/libavfilter/avcodec.c
index 3f79c20..0d87808 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;
diff --git a/libavfilter/buffer.c b/libavfilter/buffer.c
index b878be5..9600f6d 100644
--- a/libavfilter/buffer.c
+++ b/libavfilter/buffer.c
@@ -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) {
More information about the ffmpeg-cvslog
mailing list