diff --git a/libavcodec/rawenc.c b/libavcodec/rawenc.c index 24f258066d..1bfc8888b8 100644 --- a/libavcodec/rawenc.c +++ b/libavcodec/rawenc.c @@ -40,6 +40,7 @@ static av_cold int raw_init_encoder(AVCodecContext *avctx) static int raw_encode(AVCodecContext *avctx, unsigned char *frame, int buf_size, void *data) { + avctx->coded_frame->pts = ((AVFrame *)data)->pts; return avpicture_layout((AVPicture *)data, avctx->pix_fmt, avctx->width, avctx->height, frame, buf_size); }