comparison asv1.c @ 3740:0082fb8c77b6 libavcodec

set supported pixel formats for a few encoders (fixes crashes with grayscale)
author michael
date Wed, 20 Sep 2006 21:17:37 +0000
parents 8e00b10aeb0a
children 20545fbb6f7c
comparison
equal deleted inserted replaced
3739:57ff26561bd7 3740:0082fb8c77b6
630 CODEC_ID_ASV1, 630 CODEC_ID_ASV1,
631 sizeof(ASV1Context), 631 sizeof(ASV1Context),
632 encode_init, 632 encode_init,
633 encode_frame, 633 encode_frame,
634 //encode_end, 634 //encode_end,
635 .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
635 }; 636 };
636 637
637 AVCodec asv2_encoder = { 638 AVCodec asv2_encoder = {
638 "asv2", 639 "asv2",
639 CODEC_TYPE_VIDEO, 640 CODEC_TYPE_VIDEO,
640 CODEC_ID_ASV2, 641 CODEC_ID_ASV2,
641 sizeof(ASV1Context), 642 sizeof(ASV1Context),
642 encode_init, 643 encode_init,
643 encode_frame, 644 encode_frame,
644 //encode_end, 645 //encode_end,
646 .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
645 }; 647 };
646 648
647 #endif //CONFIG_ENCODERS 649 #endif //CONFIG_ENCODERS