[FFmpeg-devel] [PATCH] lavfi/avcodec: copy pos field from AVFilterBuffer to AVFrame pkt_pos

Stefano Sabatini stefasab at gmail.com
Sun Jun 10 18:34:45 CEST 2012


---
 libavfilter/avcodec.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavfilter/avcodec.c b/libavfilter/avcodec.c
index 4ef7eb2..f970f29 100644
--- a/libavfilter/avcodec.c
+++ b/libavfilter/avcodec.c
@@ -89,6 +89,7 @@ int avfilter_copy_buf_props(AVFrame *dst, const AVFilterBufferRef *src)
     memcpy(dst->linesize, src->linesize, sizeof(dst->linesize));
 
     dst->pts     = src->pts;
+    dst->pkt_pos = src->pos;
     dst->format  = src->format;
 
     switch (src->type) {
-- 
1.7.5.4



More information about the ffmpeg-devel mailing list