comparison mp3.c @ 468:60f897e8dd2d libavformat

pass AVPacket into av_write_frame() fixes the random dts/pts during encoding asf preroll fix no more initial zero frames for b frame encoding mpeg-es dts during demuxing fixed .ffm timestamp scale fixed, ffm is still broken though
author michael
date Sat, 29 May 2004 02:06:32 +0000
parents 5552d3761ec0
children 0fdc96c2f2fe
comparison
equal deleted inserted replaced
467:40069a91d1a0 468:60f897e8dd2d
322 static int mp3_write_header(struct AVFormatContext *s) 322 static int mp3_write_header(struct AVFormatContext *s)
323 { 323 {
324 return 0; 324 return 0;
325 } 325 }
326 326
327 static int mp3_write_packet(struct AVFormatContext *s, int stream_index, 327 static int mp3_write_packet(struct AVFormatContext *s, AVPacket *pkt)
328 const uint8_t *buf, int size, int64_t pts) 328 {
329 { 329 put_buffer(&s->pb, pkt->data, pkt->size);
330 put_buffer(&s->pb, buf, size);
331 put_flush_packet(&s->pb); 330 put_flush_packet(&s->pb);
332 return 0; 331 return 0;
333 } 332 }
334 333
335 static int mp3_write_trailer(struct AVFormatContext *s) 334 static int mp3_write_trailer(struct AVFormatContext *s)