Mercurial > libavcodec.hg
comparison rawenc.c @ 8039:d17ee125add1 libavcodec
Copy pts for each raw encoded frame.
Patch by Andrew Wason rectalogic rectalogic com
Fixes issue 676
author | benoit |
---|---|
date | Mon, 20 Oct 2008 07:35:17 +0000 |
parents | e943e1409077 |
children | a591c3736fd8 |
comparison
equal
deleted
inserted
replaced
8038:efc935702bce | 8039:d17ee125add1 |
---|---|
38 } | 38 } |
39 | 39 |
40 static int raw_encode(AVCodecContext *avctx, | 40 static int raw_encode(AVCodecContext *avctx, |
41 unsigned char *frame, int buf_size, void *data) | 41 unsigned char *frame, int buf_size, void *data) |
42 { | 42 { |
43 avctx->coded_frame->pts = ((AVFrame *)data)->pts; | |
43 return avpicture_layout((AVPicture *)data, avctx->pix_fmt, avctx->width, | 44 return avpicture_layout((AVPicture *)data, avctx->pix_fmt, avctx->width, |
44 avctx->height, frame, buf_size); | 45 avctx->height, frame, buf_size); |
45 } | 46 } |
46 | 47 |
47 AVCodec rawvideo_encoder = { | 48 AVCodec rawvideo_encoder = { |