comparison nut.c @ 277:a313e1080322 libavformat

disable encoders where appropriate (patch courtesy of BERO <bero -at- geocities.co.jp>)
author melanson
date Tue, 14 Oct 2003 04:15:53 +0000
parents 13cbfe47f085
children a864d92bf6b8
comparison
equal deleted inserted replaced
276:3dd3646e0164 277:a313e1080322
131 return i; 131 return i;
132 132
133 return 7; //not reached 133 return 7; //not reached
134 } 134 }
135 135
136 #ifdef CONFIG_ENCODERS
136 static int put_v(ByteIOContext *bc, uint64_t val) 137 static int put_v(ByteIOContext *bc, uint64_t val)
137 { 138 {
138 int i; 139 int i;
139 140
140 // if (bytes_left(s)*8 < 9) 141 // if (bytes_left(s)*8 < 9)
391 392
392 put_flush_packet(bc); 393 put_flush_packet(bc);
393 394
394 return 0; 395 return 0;
395 } 396 }
397 #endif //CONFIG_ENCODERS
396 398
397 static int nut_probe(AVProbeData *p) 399 static int nut_probe(AVProbeData *p)
398 { 400 {
399 int i; 401 int i;
400 uint64_t code; 402 uint64_t code;
559 // nut_read_close, 561 // nut_read_close,
560 // nut_read_seek, 562 // nut_read_seek,
561 .extensions = "nut", 563 .extensions = "nut",
562 }; 564 };
563 565
566 #ifdef CONFIG_ENCODERS
564 static AVOutputFormat nut_oformat = { 567 static AVOutputFormat nut_oformat = {
565 "nut", 568 "nut",
566 "nut format", 569 "nut format",
567 "video/x-nut", 570 "video/x-nut",
568 "nut", 571 "nut",
577 CODEC_ID_MPEG4, 580 CODEC_ID_MPEG4,
578 nut_write_header, 581 nut_write_header,
579 nut_write_packet, 582 nut_write_packet,
580 nut_write_trailer, 583 nut_write_trailer,
581 }; 584 };
585 #endif //CONFIG_ENCODERS
582 586
583 int nut_init(void) 587 int nut_init(void)
584 { 588 {
585 av_register_input_format(&nut_iformat); 589 av_register_input_format(&nut_iformat);
590 #ifdef CONFIG_ENCODERS
586 av_register_output_format(&nut_oformat); 591 av_register_output_format(&nut_oformat);
587 return 0; 592 #endif //CONFIG_ENCODERS
588 } 593 return 0;
594 }