summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-05-05 21:23:28 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-05-05 21:23:28 +0000
commitdd17409ca075b35db85e56795078b718a702cf86 (patch)
tree591bc513472bf9ae5d459cb82e37f7e36eb14ac2 /ffmpeg.c
parent8a0c66a7e370ce87cbedf5630a7681fe60ba2761 (diff)
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
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 53354c645b..b6fa3e7041 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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;
}