changeset 12304:78275120749d libavcodec

Set coded_frame->pts in the FLAC encoder
author jbr
date Fri, 30 Jul 2010 19:18:48 +0000
parents bf6a00442ed0
children 000218dd70aa
files flacenc.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flacenc.c	Fri Jul 30 19:02:59 2010 +0000
+++ b/flacenc.c	Fri Jul 30 19:18:48 2010 +0000
@@ -1317,6 +1317,7 @@
     }
 
     s->frame_count++;
+    avctx->coded_frame->pts = s->sample_count;
     s->sample_count += avctx->frame_size;
     update_md5_sum(s, samples);
     if (out_bytes > s->max_encoded_framesize)