comparison raw.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 09e46bfc859c
children e0a66a870b7f
comparison
equal deleted inserted replaced
467:40069a91d1a0 468:60f897e8dd2d
23 static int raw_write_header(struct AVFormatContext *s) 23 static int raw_write_header(struct AVFormatContext *s)
24 { 24 {
25 return 0; 25 return 0;
26 } 26 }
27 27
28 static int raw_write_packet(struct AVFormatContext *s, int stream_index, 28 static int raw_write_packet(struct AVFormatContext *s, AVPacket *pkt)
29 const uint8_t *buf, int size, int64_t pts) 29 {
30 { 30 put_buffer(&s->pb, pkt->data, pkt->size);
31 put_buffer(&s->pb, buf, size);
32 put_flush_packet(&s->pb); 31 put_flush_packet(&s->pb);
33 return 0; 32 return 0;
34 } 33 }
35 34
36 static int raw_write_trailer(struct AVFormatContext *s) 35 static int raw_write_trailer(struct AVFormatContext *s)
549 raw_write_trailer, 548 raw_write_trailer,
550 }; 549 };
551 #endif //CONFIG_ENCODERS 550 #endif //CONFIG_ENCODERS
552 551
553 #ifdef CONFIG_ENCODERS 552 #ifdef CONFIG_ENCODERS
554 static int null_write_packet(struct AVFormatContext *s, 553 static int null_write_packet(struct AVFormatContext *s, AVPacket *pkt)
555 int stream_index,
556 const uint8_t *buf, int size, int64_t pts)
557 { 554 {
558 return 0; 555 return 0;
559 } 556 }
560 557
561 AVOutputFormat null_oformat = { 558 AVOutputFormat null_oformat = {