Mercurial > libavformat.hg
changeset 3118:4410d9725469 libavformat
do not reset duration_error for all streams, only reset current stream, fix wrong_fps.gxf
author | bcoudurier |
---|---|
date | Thu, 06 Mar 2008 17:44:42 +0000 |
parents | 021b8af968cd |
children | b1caac2f77ad |
files | utils.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Thu Mar 06 13:40:29 2008 +0000 +++ b/utils.c Thu Mar 06 17:44:42 2008 +0000 @@ -1932,7 +1932,7 @@ // if(st->codec->codec_type == CODEC_TYPE_VIDEO) // av_log(NULL, AV_LOG_ERROR, "%f\n", dur); if(duration_count[index] < 2) - memset(duration_error, 0, MAX_STREAMS * sizeof(*duration_error)); + memset(duration_error[index], 0, sizeof(*duration_error)); for(i=1; i<MAX_STD_TIMEBASES; i++){ int framerate= get_std_framerate(i); int ticks= lrintf(dur*framerate/(1001*12));