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

Originally committed as revision 3168 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer
2004-05-29 02:06:32 +00:00
parent a7b2871cd1
commit e928649b0b
33 changed files with 328 additions and 245 deletions

View File

@ -72,11 +72,10 @@ static int au_write_header(AVFormatContext *s)
return 0;
}
static int au_write_packet(AVFormatContext *s, int stream_index_ptr,
const uint8_t *buf, int size, int64_t pts)
static int au_write_packet(AVFormatContext *s, AVPacket *pkt)
{
ByteIOContext *pb = &s->pb;
put_buffer(pb, buf, size);
put_buffer(pb, pkt->data, pkt->size);
return 0;
}