diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-04-04 18:37:41 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-04-04 18:37:41 +0000 |
commit | a1d4d70c7a78d181430036e58d8394eb274e032b (patch) | |
tree | fd9f5e5a230066ec2736b65c2a430f01f7e4e4c7 /libavformat/nut.c | |
parent | b0c7f5a9d82feb7f4c4cdf77f1537193670ab58b (diff) | |
download | ffmpeg-a1d4d70c7a78d181430036e58d8394eb274e032b.tar.gz |
large extradata fix
use 3 pts predictors for vorbis, slightly more efficient
Originally committed as revision 2960 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/nut.c')
-rw-r--r-- | libavformat/nut.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/nut.c b/libavformat/nut.c index a7f91f57ee..f4f5f1fce3 100644 --- a/libavformat/nut.c +++ b/libavformat/nut.c @@ -203,7 +203,7 @@ static void build_frame_code(AVFormatContext *s){ start2++; } #endif - pred_count= 2 + codec->has_b_frames; + pred_count= 2 + codec->has_b_frames + (codec->codec_id == CODEC_ID_VORBIS); for(pred=0; pred<pred_count; pred++){ int start3= start2 + (end2-start2)*pred / pred_count; int end3 = start2 + (end2-start2)*(pred+1) / pred_count; @@ -443,7 +443,7 @@ static int nut_write_header(AVFormatContext *s) codec = &s->streams[i]->codec; put_be64(bc, STREAM_STARTCODE); - put_packetheader(nut, bc, 120); + put_packetheader(nut, bc, 120 + codec->extradata_size); put_v(bc, i /*s->streams[i]->index*/); put_v(bc, (codec->codec_type == CODEC_TYPE_AUDIO) ? 32 : 0); if (codec->codec_tag) |