aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/nutenc.c
diff options
context:
space:
mode:
authorOded Shimon <ods15@ods15.dyndns.org>2008-02-04 10:34:35 +0000
committerOded Shimon <ods15@ods15.dyndns.org>2008-02-04 10:34:35 +0000
commit82badd27f165e9002b97402a71c0aa5d6e248d3e (patch)
treee0131bdf67fc618e3f03cd409d9e230d0aa6a522 /libavformat/nutenc.c
parenteae213af43a3db24720d6df6b543224b7dce1fd3 (diff)
downloadffmpeg-82badd27f165e9002b97402a71c0aa5d6e248d3e.tar.gz
nut->max_distance was not set at all anywhere in the NUT muxer
Originally committed as revision 11854 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/nutenc.c')
-rw-r--r--libavformat/nutenc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c
index bd326bca67..a8a431fc22 100644
--- a/libavformat/nutenc.c
+++ b/libavformat/nutenc.c
@@ -216,7 +216,7 @@ static void write_mainheader(NUTContext *nut, ByteIOContext *bc){
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 @@ static int write_header(AVFormatContext *s){
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);