comparison mjpegdec.c @ 11560:8a4984c5cacc libavcodec

Define AVMediaType enum, and use it instead of enum CodecType, which is deprecated and will be dropped at the next major bump.
author stefano
date Tue, 30 Mar 2010 23:30:55 +0000
parents 5ab861519e79
children 7dd2a45249a9
comparison
equal deleted inserted replaced
11559:444f4b594fdb 11560:8a4984c5cacc
1531 return 0; 1531 return 0;
1532 } 1532 }
1533 1533
1534 AVCodec mjpeg_decoder = { 1534 AVCodec mjpeg_decoder = {
1535 "mjpeg", 1535 "mjpeg",
1536 CODEC_TYPE_VIDEO, 1536 AVMEDIA_TYPE_VIDEO,
1537 CODEC_ID_MJPEG, 1537 CODEC_ID_MJPEG,
1538 sizeof(MJpegDecodeContext), 1538 sizeof(MJpegDecodeContext),
1539 ff_mjpeg_decode_init, 1539 ff_mjpeg_decode_init,
1540 NULL, 1540 NULL,
1541 ff_mjpeg_decode_end, 1541 ff_mjpeg_decode_end,
1545 .long_name = NULL_IF_CONFIG_SMALL("MJPEG (Motion JPEG)"), 1545 .long_name = NULL_IF_CONFIG_SMALL("MJPEG (Motion JPEG)"),
1546 }; 1546 };
1547 1547
1548 AVCodec thp_decoder = { 1548 AVCodec thp_decoder = {
1549 "thp", 1549 "thp",
1550 CODEC_TYPE_VIDEO, 1550 AVMEDIA_TYPE_VIDEO,
1551 CODEC_ID_THP, 1551 CODEC_ID_THP,
1552 sizeof(MJpegDecodeContext), 1552 sizeof(MJpegDecodeContext),
1553 ff_mjpeg_decode_init, 1553 ff_mjpeg_decode_init,
1554 NULL, 1554 NULL,
1555 ff_mjpeg_decode_end, 1555 ff_mjpeg_decode_end,