summaryrefslogtreecommitdiff
path: root/cmdutils.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-04-29 12:28:44 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-01 13:09:58 +0200
commit1ba57272429fc6c86e39cd236e2b32ac545e1488 (patch)
tree6e8e29bf5b9c71420943d28cb383246f7a357270 /cmdutils.c
parentaba0278e9fe8e66c078588efe66f6af4db432770 (diff)
lavc: add a pkt_pos field to AVFrame
This is similar to what was done with pkt_pts. This simplifies the operation of extracting the pos information from the AVPacket, and allows further simplifications.
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmdutils.c b/cmdutils.c
index 4363e8a842..7989e06b74 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -907,6 +907,7 @@ int get_filtered_video_frame(AVFilterContext *ctx, AVFrame *frame,
memcpy(frame->data, picref->data, sizeof(frame->data));
memcpy(frame->linesize, picref->linesize, sizeof(frame->linesize));
+ frame->pkt_pos = picref->pos;
frame->interlaced_frame = picref->video->interlaced;
frame->top_field_first = picref->video->top_field_first;
frame->key_frame = picref->video->key_frame;