Revision 99b17f25 libavformat/nut.c

View differences:

libavformat/nut.c
236 236
	
237 237
	put_packetheader(nut, bc, 120);
238 238
	put_be64(bc, STREAM_STARTCODE);
239
	put_v(bc, s->streams[i]->index);
239
	put_v(bc, i /*s->streams[i]->index*/);
240 240
	put_v(bc, (codec->codec_type == CODEC_TYPE_AUDIO) ? 32 : 0);
241 241
	if (codec->codec_tag)
242 242
	    put_b(bc, &codec->codec_tag, 4);
......
310 310
    }
311 311
    /* encoder */
312 312
    put_v(bc, 9); /* type */
313
    put_b(bc, LIBAVFORMAT_IDENT, strlen(LIBAVFORMAT_IDENT));
313
    put_b(bc, LIBAVFORMAT_IDENT "\0", strlen(LIBAVFORMAT_IDENT));
314
    
315
    put_v(bc, 0); /* eof info */
314 316

  
315 317
    put_be32(bc, 0); /* FIXME: checksum */
316 318
    update_packetheader(nut, bc, 0);
......
351 353

  
352 354
    put_byte(bc, flags);
353 355
    put_v(bc, stream_index);
354
    put_s(bc, 0); /* lsb_timestamp */
356
    put_s(bc, force_pts); /* lsb_timestamp */
355 357
    update_packetheader(nut, bc, size);
356 358
    
357 359
    put_buffer(bc, buf, size);
......
571 573
#elif defined(CONFIG_MP3LAME)
572 574
    CODEC_ID_MP3LAME,
573 575
#else
574
    CODEC_ID_MP2,
576
    CODEC_ID_AC3,
575 577
#endif
576 578
    CODEC_ID_MPEG4,
577 579
    nut_write_header,

Also available in: Unified diff