Commit 40030da7 authored by ods15's avatar ods15

nut->max_distance was not set at all anywhere in the NUT muxer


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11854 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 88b2295f
...@@ -216,7 +216,7 @@ static void write_mainheader(NUTContext *nut, ByteIOContext *bc){ ...@@ -216,7 +216,7 @@ static void write_mainheader(NUTContext *nut, ByteIOContext *bc){
put_v(bc, 3); /* version */ put_v(bc, 3); /* version */
put_v(bc, nut->avf->nb_streams); 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); put_v(bc, nut->time_base_count);
for(i=0; i<nut->time_base_count; i++){ for(i=0; i<nut->time_base_count; i++){
...@@ -418,6 +418,7 @@ static int write_header(AVFormatContext *s){ ...@@ -418,6 +418,7 @@ static int write_header(AVFormatContext *s){
nut->stream[i].max_pts_distance= FFMAX(1/av_q2d(time_base), 1); nut->stream[i].max_pts_distance= FFMAX(1/av_q2d(time_base), 1);
} }
nut->max_distance = MAX_DISTANCE;
build_frame_code(s); build_frame_code(s);
assert(nut->frame_code['N'].flags == FLAG_INVALID); assert(nut->frame_code['N'].flags == FLAG_INVALID);
......
...@@ -30,8 +30,8 @@ f8ad5bd78f4d012a8ce9570aa395ac54 *./tests/data/b-libav.flv ...@@ -30,8 +30,8 @@ f8ad5bd78f4d012a8ce9570aa395ac54 *./tests/data/b-libav.flv
2ba41cf880aa5cb87e8a08fdb735398d *./tests/data/b-libav.gxf 2ba41cf880aa5cb87e8a08fdb735398d *./tests/data/b-libav.gxf
814640 ./tests/data/b-libav.gxf 814640 ./tests/data/b-libav.gxf
./tests/data/b-libav.gxf CRC=0xa376c09e ./tests/data/b-libav.gxf CRC=0xa376c09e
79d92ebd1e760575136fb5f0782d5151 *./tests/data/b-libav.nut 5b6d03cfa8ccb701bec3c0f0e562e0da *./tests/data/b-libav.nut
331022 ./tests/data/b-libav.nut 330100 ./tests/data/b-libav.nut
./tests/data/b-libav.nut CRC=0x400c29e9 ./tests/data/b-libav.nut CRC=0x400c29e9
43238b15f1012aa27536c2be20bb2383 *./tests/data/b-libav.mkv 43238b15f1012aa27536c2be20bb2383 *./tests/data/b-libav.mkv
329854 ./tests/data/b-libav.mkv 329854 ./tests/data/b-libav.mkv
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment