Mercurial > libavformat.hg
changeset 3014:66fb9d4dea91 libavformat
nut->max_distance was not set at all anywhere in the NUT muxer
author | ods15 |
---|---|
date | Mon, 04 Feb 2008 10:34:35 +0000 |
parents | 2478b7222c56 |
children | db8d14740060 |
files | nutenc.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/nutenc.c Mon Feb 04 10:30:38 2008 +0000 +++ b/nutenc.c Mon Feb 04 10:34:35 2008 +0000 @@ -216,7 +216,7 @@ put_v(bc, 3); /* version */ put_v(bc, nut->avf->nb_streams); - put_v(bc, MAX_DISTANCE); + put_v(bc, nut->max_distance); put_v(bc, nut->time_base_count); for(i=0; i<nut->time_base_count; i++){ @@ -418,6 +418,7 @@ nut->stream[i].max_pts_distance= FFMAX(1/av_q2d(time_base), 1); } + nut->max_distance = MAX_DISTANCE; build_frame_code(s); assert(nut->frame_code['N'].flags == FLAG_INVALID);