changeset 17539:c692a99ea1bd

fixed wrong delta_frame calculation that would affect soft-telecine
author nicodvb
date Mon, 06 Feb 2006 20:59:19 +0000
parents bb1ab9250f05
children a04406156eab
files libmpdemux/muxer_mpeg.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/muxer_mpeg.c	Mon Feb 06 16:04:17 2006 +0000
+++ b/libmpdemux/muxer_mpeg.c	Mon Feb 06 20:59:19 2006 +0000
@@ -1934,7 +1934,7 @@
 			d1 = temp_ref - spriv->last_tr;
 			if(gop_reset)
 			{
-				frames_diff = spriv->max_tr + temp_ref - spriv->last_tr;
+				frames_diff = spriv->max_tr + 1 + temp_ref - spriv->last_tr;
 			}
 			else
 			{