next_pts fix by (Wolfram Gloger <wmglo at dent dot med dot uni-muenchen dot de>)

note, dont take the PSNR/stddev values serious, they are caused by a bug in ffmpeg.c which drops one frame before the last frame during encoding with b frames

Originally committed as revision 3110 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer
2004-05-05 21:23:28 +00:00
parent 8a0c66a7e3
commit dd17409ca0
3 changed files with 13 additions and 13 deletions

View File

@@ -1003,7 +1003,7 @@ static int output_packet(AVInputStream *ist, int ist_index,
void *buffer_to_free;
if (pkt && pkt->pts != AV_NOPTS_VALUE) {
ist->pts = pkt->pts;
ist->next_pts = ist->pts = pkt->pts;
} else {
ist->pts = ist->next_pts;
}