comparison gif.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 a44f75c31b8d
children f998b32632d6
comparison
equal deleted inserted replaced
467:40069a91d1a0 468:60f897e8dd2d
362 362
363 put_flush_packet(&s->pb); 363 put_flush_packet(&s->pb);
364 return 0; 364 return 0;
365 } 365 }
366 366
367 static int gif_write_packet(AVFormatContext *s, int stream_index, 367 static int gif_write_packet(AVFormatContext *s, AVPacket *pkt)
368 const uint8_t *buf, int size, int64_t pts) 368 {
369 { 369 AVCodecContext *codec = &s->streams[pkt->stream_index]->codec;
370 AVCodecContext *codec = &s->streams[stream_index]->codec;
371 if (codec->codec_type == CODEC_TYPE_AUDIO) 370 if (codec->codec_type == CODEC_TYPE_AUDIO)
372 return 0; /* just ignore audio */ 371 return 0; /* just ignore audio */
373 else 372 else
374 return gif_write_video(s, codec, buf, size); 373 return gif_write_video(s, codec, pkt->data, pkt->size);
375 } 374 }
376 375
377 static int gif_write_trailer(AVFormatContext *s) 376 static int gif_write_trailer(AVFormatContext *s)
378 { 377 {
379 ByteIOContext *pb = &s->pb; 378 ByteIOContext *pb = &s->pb;