[FFmpeg-cvslog] r15653 - trunk/libavcodec/rawenc.c
benoit
subversion
Mon Oct 20 09:35:18 CEST 2008
Author: benoit
Date: Mon Oct 20 09:35:17 2008
New Revision: 15653
Log:
Copy pts for each raw encoded frame.
Patch by Andrew Wason rectalogic rectalogic com
Fixes issue 676
Modified:
trunk/libavcodec/rawenc.c
Modified: trunk/libavcodec/rawenc.c
==============================================================================
--- trunk/libavcodec/rawenc.c (original)
+++ trunk/libavcodec/rawenc.c Mon Oct 20 09:35:17 2008
@@ -40,6 +40,7 @@ static av_cold int raw_init_encoder(AVCo
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);
}
More information about the ffmpeg-cvslog
mailing list