Revision a1d4d70c libavformat/nut.c

View differences:

libavformat/nut.c
203 203
            start2++;
204 204
        }
205 205
#endif
206
        pred_count= 2 + codec->has_b_frames;
206
        pred_count= 2 + codec->has_b_frames + (codec->codec_id == CODEC_ID_VORBIS);
207 207
        for(pred=0; pred<pred_count; pred++){
208 208
            int start3= start2 + (end2-start2)*pred / pred_count;
209 209
            int end3  = start2 + (end2-start2)*(pred+1) / pred_count;
......
443 443
	codec = &s->streams[i]->codec;
444 444
	
445 445
	put_be64(bc, STREAM_STARTCODE);
446
	put_packetheader(nut, bc, 120);
446
	put_packetheader(nut, bc, 120 + codec->extradata_size);
447 447
	put_v(bc, i /*s->streams[i]->index*/);
448 448
	put_v(bc, (codec->codec_type == CODEC_TYPE_AUDIO) ? 32 : 0);
449 449
	if (codec->codec_tag)

Also available in: Unified diff