projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccfe8ae
)
Copy pts for each raw encoded frame.
author
Andrew Wason
<rectalogic@rectalogic.com>
Mon, 20 Oct 2008 07:35:17 +0000
(07:35 +0000)
committer
Benoit Fouet
<benoit.fouet@free.fr>
Mon, 20 Oct 2008 07:35:17 +0000
(07:35 +0000)
Patch by Andrew Wason rectalogic rectalogic com
Fixes issue 676
Originally committed as revision 15653 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/rawenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/rawenc.c
b/libavcodec/rawenc.c
index
24f2580
..
1bfc888
100644
(file)
--- 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);
}