aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/rawdec.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 /libavcodec/rawdec.c
parentaba0278e9fe8e66c078588efe66f6af4db432770 (diff)
downloadffmpeg-1ba57272429fc6c86e39cd236e2b32ac545e1488.tar.gz
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 'libavcodec/rawdec.c')
-rw-r--r--libavcodec/rawdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c
index d9993c038b..029bee21da 100644
--- a/libavcodec/rawdec.c
+++ b/libavcodec/rawdec.c
@@ -124,6 +124,7 @@ static int raw_decode(AVCodecContext *avctx,
frame->top_field_first = avctx->coded_frame->top_field_first;
frame->reordered_opaque = avctx->reordered_opaque;
frame->pkt_pts = avctx->pkt->pts;
+ frame->pkt_pos = avctx->pkt->pos;
//2bpp and 4bpp raw in avi and mov (yes this is ugly ...)
if (context->buffer) {