1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

In the rawvideo decoder, set pkt_pts in the output frame.

Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
This commit is contained in:
Stefano Sabatini 2011-01-27 21:26:38 +01:00 committed by Janne Grunau
parent 3e5bc7ff6a
commit 3c802cabba

View File

@ -124,6 +124,7 @@ static int raw_decode(AVCodecContext *avctx,
frame->interlaced_frame = avctx->coded_frame->interlaced_frame;
frame->top_field_first = avctx->coded_frame->top_field_first;
frame->reordered_opaque = avctx->reordered_opaque;
frame->pkt_pts = avctx->pkt->pts;
//2bpp and 4bpp raw in avi and mov (yes this is ugly ...)
if (context->buffer) {