X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Frawenc.c;h=088b62f3692c12bd3e21d6e6a5fef9bef0b7f89a;hb=bc70684e74a185d7b80c8b80bdedda659cb581b8;hp=9e2354554310de8d5a38e3b41c075849ac415d18;hpb=d92f38c179591a608390ffa9fee59c309142e79d;p=ffmpeg diff --git a/libavformat/rawenc.c b/libavformat/rawenc.c index 9e235455431..088b62f3692 100644 --- a/libavformat/rawenc.c +++ b/libavformat/rawenc.c @@ -57,7 +57,7 @@ static int force_one_stream(AVFormatContext *s) /* Note: Do not forget to add new entries to the Makefile as well. */ #if CONFIG_AC3_MUXER -AVOutputFormat ff_ac3_muxer = { +const AVOutputFormat ff_ac3_muxer = { .name = "ac3", .long_name = NULL_IF_CONFIG_SMALL("raw AC-3"), .mime_type = "audio/x-ac3", @@ -90,7 +90,7 @@ static int adx_write_trailer(AVFormatContext *s) return 0; } -AVOutputFormat ff_adx_muxer = { +const AVOutputFormat ff_adx_muxer = { .name = "adx", .long_name = NULL_IF_CONFIG_SMALL("CRI ADX"), .extensions = "adx", @@ -104,7 +104,7 @@ AVOutputFormat ff_adx_muxer = { #endif #if CONFIG_APTX_MUXER -AVOutputFormat ff_aptx_muxer = { +const AVOutputFormat ff_aptx_muxer = { .name = "aptx", .long_name = NULL_IF_CONFIG_SMALL("raw aptX (Audio Processing Technology for Bluetooth)"), .extensions = "aptx", @@ -117,7 +117,7 @@ AVOutputFormat ff_aptx_muxer = { #endif #if CONFIG_APTX_HD_MUXER -AVOutputFormat ff_aptx_hd_muxer = { +const AVOutputFormat ff_aptx_hd_muxer = { .name = "aptx_hd", .long_name = NULL_IF_CONFIG_SMALL("raw aptX HD (Audio Processing Technology for Bluetooth)"), .extensions = "aptxhd", @@ -130,7 +130,7 @@ AVOutputFormat ff_aptx_hd_muxer = { #endif #if CONFIG_AVS2_MUXER -AVOutputFormat ff_avs2_muxer = { +const AVOutputFormat ff_avs2_muxer = { .name = "avs2", .long_name = NULL_IF_CONFIG_SMALL("raw AVS2-P2/IEEE1857.4 video"), .extensions = "avs,avs2", @@ -143,7 +143,7 @@ AVOutputFormat ff_avs2_muxer = { #endif #if CONFIG_CAVSVIDEO_MUXER -AVOutputFormat ff_cavsvideo_muxer = { +const AVOutputFormat ff_cavsvideo_muxer = { .name = "cavsvideo", .long_name = NULL_IF_CONFIG_SMALL("raw Chinese AVS (Audio Video Standard) video"), .extensions = "cavs", @@ -156,7 +156,7 @@ AVOutputFormat ff_cavsvideo_muxer = { #endif #if CONFIG_CODEC2RAW_MUXER -AVOutputFormat ff_codec2raw_muxer = { +const AVOutputFormat ff_codec2raw_muxer = { .name = "codec2raw", .long_name = NULL_IF_CONFIG_SMALL("raw codec2 muxer"), .audio_codec = AV_CODEC_ID_CODEC2, @@ -169,7 +169,7 @@ AVOutputFormat ff_codec2raw_muxer = { #if CONFIG_DATA_MUXER -AVOutputFormat ff_data_muxer = { +const AVOutputFormat ff_data_muxer = { .name = "data", .long_name = NULL_IF_CONFIG_SMALL("raw data"), .init = force_one_stream, @@ -179,7 +179,7 @@ AVOutputFormat ff_data_muxer = { #endif #if CONFIG_DIRAC_MUXER -AVOutputFormat ff_dirac_muxer = { +const AVOutputFormat ff_dirac_muxer = { .name = "dirac", .long_name = NULL_IF_CONFIG_SMALL("raw Dirac"), .extensions = "drc,vc2", @@ -192,7 +192,7 @@ AVOutputFormat ff_dirac_muxer = { #endif #if CONFIG_DNXHD_MUXER -AVOutputFormat ff_dnxhd_muxer = { +const AVOutputFormat ff_dnxhd_muxer = { .name = "dnxhd", .long_name = NULL_IF_CONFIG_SMALL("raw DNxHD (SMPTE VC-3)"), .extensions = "dnxhd,dnxhr", @@ -205,7 +205,7 @@ AVOutputFormat ff_dnxhd_muxer = { #endif #if CONFIG_DTS_MUXER -AVOutputFormat ff_dts_muxer = { +const AVOutputFormat ff_dts_muxer = { .name = "dts", .long_name = NULL_IF_CONFIG_SMALL("raw DTS"), .mime_type = "audio/x-dca", @@ -219,7 +219,7 @@ AVOutputFormat ff_dts_muxer = { #endif #if CONFIG_EAC3_MUXER -AVOutputFormat ff_eac3_muxer = { +const AVOutputFormat ff_eac3_muxer = { .name = "eac3", .long_name = NULL_IF_CONFIG_SMALL("raw E-AC-3"), .mime_type = "audio/x-eac3", @@ -233,7 +233,7 @@ AVOutputFormat ff_eac3_muxer = { #endif #if CONFIG_G722_MUXER -AVOutputFormat ff_g722_muxer = { +const AVOutputFormat ff_g722_muxer = { .name = "g722", .long_name = NULL_IF_CONFIG_SMALL("raw G.722"), .mime_type = "audio/G722", @@ -247,7 +247,7 @@ AVOutputFormat ff_g722_muxer = { #endif #if CONFIG_G723_1_MUXER -AVOutputFormat ff_g723_1_muxer = { +const AVOutputFormat ff_g723_1_muxer = { .name = "g723_1", .long_name = NULL_IF_CONFIG_SMALL("raw G.723.1"), .mime_type = "audio/g723", @@ -261,7 +261,7 @@ AVOutputFormat ff_g723_1_muxer = { #endif #if CONFIG_G726_MUXER -AVOutputFormat ff_g726_muxer = { +const AVOutputFormat ff_g726_muxer = { .name = "g726", .long_name = NULL_IF_CONFIG_SMALL("raw big-endian G.726 (\"left-justified\")"), .audio_codec = AV_CODEC_ID_ADPCM_G726, @@ -273,7 +273,7 @@ AVOutputFormat ff_g726_muxer = { #endif #if CONFIG_G726LE_MUXER -AVOutputFormat ff_g726le_muxer = { +const AVOutputFormat ff_g726le_muxer = { .name = "g726le", .long_name = NULL_IF_CONFIG_SMALL("raw little-endian G.726 (\"right-justified\")"), .audio_codec = AV_CODEC_ID_ADPCM_G726LE, @@ -285,7 +285,7 @@ AVOutputFormat ff_g726le_muxer = { #endif #if CONFIG_GSM_MUXER -AVOutputFormat ff_gsm_muxer = { +const AVOutputFormat ff_gsm_muxer = { .name = "gsm", .long_name = NULL_IF_CONFIG_SMALL("raw GSM"), .mime_type = "audio/x-gsm", @@ -299,7 +299,7 @@ AVOutputFormat ff_gsm_muxer = { #endif #if CONFIG_H261_MUXER -AVOutputFormat ff_h261_muxer = { +const AVOutputFormat ff_h261_muxer = { .name = "h261", .long_name = NULL_IF_CONFIG_SMALL("raw H.261"), .mime_type = "video/x-h261", @@ -313,7 +313,7 @@ AVOutputFormat ff_h261_muxer = { #endif #if CONFIG_H263_MUXER -AVOutputFormat ff_h263_muxer = { +const AVOutputFormat ff_h263_muxer = { .name = "h263", .long_name = NULL_IF_CONFIG_SMALL("raw H.263"), .mime_type = "video/x-h263", @@ -336,7 +336,7 @@ static int h264_check_bitstream(struct AVFormatContext *s, const AVPacket *pkt) return 1; } -AVOutputFormat ff_h264_muxer = { +const AVOutputFormat ff_h264_muxer = { .name = "h264", .long_name = NULL_IF_CONFIG_SMALL("raw H.264 video"), .extensions = "h264,264", @@ -359,7 +359,7 @@ static int hevc_check_bitstream(struct AVFormatContext *s, const AVPacket *pkt) return 1; } -AVOutputFormat ff_hevc_muxer = { +const AVOutputFormat ff_hevc_muxer = { .name = "hevc", .long_name = NULL_IF_CONFIG_SMALL("raw HEVC video"), .extensions = "hevc,h265,265", @@ -373,7 +373,7 @@ AVOutputFormat ff_hevc_muxer = { #endif #if CONFIG_M4V_MUXER -AVOutputFormat ff_m4v_muxer = { +const AVOutputFormat ff_m4v_muxer = { .name = "m4v", .long_name = NULL_IF_CONFIG_SMALL("raw MPEG-4 video"), .extensions = "m4v", @@ -386,7 +386,7 @@ AVOutputFormat ff_m4v_muxer = { #endif #if CONFIG_MJPEG_MUXER -AVOutputFormat ff_mjpeg_muxer = { +const AVOutputFormat ff_mjpeg_muxer = { .name = "mjpeg", .long_name = NULL_IF_CONFIG_SMALL("raw MJPEG video"), .mime_type = "video/x-mjpeg", @@ -400,7 +400,7 @@ AVOutputFormat ff_mjpeg_muxer = { #endif #if CONFIG_MLP_MUXER -AVOutputFormat ff_mlp_muxer = { +const AVOutputFormat ff_mlp_muxer = { .name = "mlp", .long_name = NULL_IF_CONFIG_SMALL("raw MLP"), .extensions = "mlp", @@ -413,7 +413,7 @@ AVOutputFormat ff_mlp_muxer = { #endif #if CONFIG_MP2_MUXER -AVOutputFormat ff_mp2_muxer = { +const AVOutputFormat ff_mp2_muxer = { .name = "mp2", .long_name = NULL_IF_CONFIG_SMALL("MP2 (MPEG audio layer 2)"), .mime_type = "audio/mpeg", @@ -427,7 +427,7 @@ AVOutputFormat ff_mp2_muxer = { #endif #if CONFIG_MPEG1VIDEO_MUXER -AVOutputFormat ff_mpeg1video_muxer = { +const AVOutputFormat ff_mpeg1video_muxer = { .name = "mpeg1video", .long_name = NULL_IF_CONFIG_SMALL("raw MPEG-1 video"), .mime_type = "video/mpeg", @@ -441,7 +441,7 @@ AVOutputFormat ff_mpeg1video_muxer = { #endif #if CONFIG_MPEG2VIDEO_MUXER -AVOutputFormat ff_mpeg2video_muxer = { +const AVOutputFormat ff_mpeg2video_muxer = { .name = "mpeg2video", .long_name = NULL_IF_CONFIG_SMALL("raw MPEG-2 video"), .extensions = "m2v", @@ -454,7 +454,7 @@ AVOutputFormat ff_mpeg2video_muxer = { #endif #if CONFIG_RAWVIDEO_MUXER -AVOutputFormat ff_rawvideo_muxer = { +const AVOutputFormat ff_rawvideo_muxer = { .name = "rawvideo", .long_name = NULL_IF_CONFIG_SMALL("raw video"), .extensions = "yuv,rgb", @@ -466,7 +466,7 @@ AVOutputFormat ff_rawvideo_muxer = { #endif #if CONFIG_SBC_MUXER -AVOutputFormat ff_sbc_muxer = { +const AVOutputFormat ff_sbc_muxer = { .name = "sbc", .long_name = NULL_IF_CONFIG_SMALL("raw SBC"), .mime_type = "audio/x-sbc", @@ -479,7 +479,7 @@ AVOutputFormat ff_sbc_muxer = { #endif #if CONFIG_TRUEHD_MUXER -AVOutputFormat ff_truehd_muxer = { +const AVOutputFormat ff_truehd_muxer = { .name = "truehd", .long_name = NULL_IF_CONFIG_SMALL("raw TrueHD"), .extensions = "thd", @@ -492,7 +492,7 @@ AVOutputFormat ff_truehd_muxer = { #endif #if CONFIG_VC1_MUXER -AVOutputFormat ff_vc1_muxer = { +const AVOutputFormat ff_vc1_muxer = { .name = "vc1", .long_name = NULL_IF_CONFIG_SMALL("raw VC-1 video"), .extensions = "vc1",