Mercurial > libavformat.hg
comparison raw.c @ 6442:852b5a321ef5 libavformat
move null muxer to its own file
| author | aurel |
|---|---|
| date | Sun, 29 Aug 2010 22:15:50 +0000 |
| parents | d23c128f1f51 |
| children | 9a1a187b1de7 |
comparison
equal
deleted
inserted
replaced
| 6441:d23c128f1f51 | 6442:852b5a321ef5 |
|---|---|
| 22 | 22 |
| 23 #include "avformat.h" | 23 #include "avformat.h" |
| 24 #include "raw.h" | 24 #include "raw.h" |
| 25 | 25 |
| 26 /* simple formats */ | 26 /* simple formats */ |
| 27 | |
| 28 #if CONFIG_NULL_MUXER | |
| 29 static int null_write_packet(struct AVFormatContext *s, AVPacket *pkt) | |
| 30 { | |
| 31 return 0; | |
| 32 } | |
| 33 #endif | |
| 34 | 27 |
| 35 #if CONFIG_MUXERS | 28 #if CONFIG_MUXERS |
| 36 int ff_raw_write_packet(AVFormatContext *s, AVPacket *pkt) | 29 int ff_raw_write_packet(AVFormatContext *s, AVPacket *pkt) |
| 37 { | 30 { |
| 38 put_buffer(s->pb, pkt->data, pkt->size); | 31 put_buffer(s->pb, pkt->data, pkt->size); |
| 528 ff_raw_write_packet, | 521 ff_raw_write_packet, |
| 529 .flags= AVFMT_NOTIMESTAMPS, | 522 .flags= AVFMT_NOTIMESTAMPS, |
| 530 }; | 523 }; |
| 531 #endif | 524 #endif |
| 532 | 525 |
| 533 #if CONFIG_NULL_MUXER | |
| 534 AVOutputFormat null_muxer = { | |
| 535 "null", | |
| 536 NULL_IF_CONFIG_SMALL("raw null video format"), | |
| 537 NULL, | |
| 538 NULL, | |
| 539 0, | |
| 540 AV_NE(CODEC_ID_PCM_S16BE, CODEC_ID_PCM_S16LE), | |
| 541 CODEC_ID_RAWVIDEO, | |
| 542 NULL, | |
| 543 null_write_packet, | |
| 544 .flags = AVFMT_NOFILE | AVFMT_RAWPICTURE | AVFMT_NOTIMESTAMPS, | |
| 545 }; | |
| 546 #endif | |
| 547 | |
| 548 #if CONFIG_RAWVIDEO_DEMUXER | 526 #if CONFIG_RAWVIDEO_DEMUXER |
| 549 AVInputFormat rawvideo_demuxer = { | 527 AVInputFormat rawvideo_demuxer = { |
| 550 "rawvideo", | 528 "rawvideo", |
| 551 NULL_IF_CONFIG_SMALL("raw video format"), | 529 NULL_IF_CONFIG_SMALL("raw video format"), |
| 552 0, | 530 0, |
