1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-13 21:28:01 +02:00

Set coded_frame->pts in the FLAC encoder

Originally committed as revision 24601 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Justin Ruggles 2010-07-30 19:18:48 +00:00
parent 27e3418844
commit 871a24f3bf

View File

@ -1317,6 +1317,7 @@ write_frame:
} }
s->frame_count++; s->frame_count++;
avctx->coded_frame->pts = s->sample_count;
s->sample_count += avctx->frame_size; s->sample_count += avctx->frame_size;
update_md5_sum(s, samples); update_md5_sum(s, samples);
if (out_bytes > s->max_encoded_framesize) if (out_bytes > s->max_encoded_framesize)