1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec: use designated initializers for bitstream filters

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2013-10-02 17:20:29 +00:00
parent 5e253fdfc1
commit 2490996f38
11 changed files with 27 additions and 36 deletions

View File

@ -112,7 +112,7 @@ static int aac_adtstoasc_filter(AVBitStreamFilterContext *bsfc,
} }
AVBitStreamFilter ff_aac_adtstoasc_bsf = { AVBitStreamFilter ff_aac_adtstoasc_bsf = {
"aac_adtstoasc", .name = "aac_adtstoasc",
sizeof(AACBSFContext), .priv_data_size = sizeof(AACBSFContext),
aac_adtstoasc_filter, .filter = aac_adtstoasc_filter,
}; };

View File

@ -41,7 +41,6 @@ static int chomp_filter(AVBitStreamFilterContext *bsfc,
* This filter removes a string of NULL bytes from the end of a packet. * This filter removes a string of NULL bytes from the end of a packet.
*/ */
AVBitStreamFilter ff_chomp_bsf = { AVBitStreamFilter ff_chomp_bsf = {
"chomp", .name = "chomp",
0, .filter = chomp_filter,
chomp_filter,
}; };

View File

@ -47,7 +47,6 @@ static int dump_extradata(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx,
} }
AVBitStreamFilter ff_dump_extradata_bsf={ AVBitStreamFilter ff_dump_extradata_bsf={
"dump_extra", .name = "dump_extra",
0, .filter = dump_extradata,
dump_extradata,
}; };

View File

@ -205,7 +205,7 @@ fail:
} }
AVBitStreamFilter ff_h264_mp4toannexb_bsf = { AVBitStreamFilter ff_h264_mp4toannexb_bsf = {
"h264_mp4toannexb", .name = "h264_mp4toannexb",
sizeof(H264BSFContext), .priv_data_size = sizeof(H264BSFContext),
h264_mp4toannexb_filter, .filter = h264_mp4toannexb_filter,
}; };

View File

@ -53,7 +53,6 @@ static int imx_dump_header(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx
} }
AVBitStreamFilter ff_imx_dump_header_bsf = { AVBitStreamFilter ff_imx_dump_header_bsf = {
"imxdump", .name = "imxdump",
0, .filter = imx_dump_header,
imx_dump_header,
}; };

View File

@ -88,7 +88,6 @@ static int mjpega_dump_header(AVBitStreamFilterContext *bsfc, AVCodecContext *av
} }
AVBitStreamFilter ff_mjpega_dump_header_bsf = { AVBitStreamFilter ff_mjpega_dump_header_bsf = {
"mjpegadump", .name = "mjpegadump",
0, .filter = mjpega_dump_header,
mjpega_dump_header,
}; };

View File

@ -35,9 +35,8 @@ static int text2movsub(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, co
} }
AVBitStreamFilter ff_text2movsub_bsf={ AVBitStreamFilter ff_text2movsub_bsf={
"text2movsub", .name = "text2movsub",
0, .filter = text2movsub,
text2movsub,
}; };
static int mov2textsub(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args, static int mov2textsub(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args,
@ -51,7 +50,6 @@ static int mov2textsub(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, co
} }
AVBitStreamFilter ff_mov2textsub_bsf={ AVBitStreamFilter ff_mov2textsub_bsf={
"mov2textsub", .name = "mov2textsub",
0, .filter = mov2textsub,
mov2textsub,
}; };

View File

@ -82,7 +82,6 @@ output_unchanged:
} }
AVBitStreamFilter ff_mp3_header_compress_bsf={ AVBitStreamFilter ff_mp3_header_compress_bsf={
"mp3comp", .name = "mp3comp",
0, .filter = mp3_header_compress,
mp3_header_compress,
}; };

View File

@ -92,7 +92,6 @@ static int mp3_header_decompress(AVBitStreamFilterContext *bsfc, AVCodecContext
} }
AVBitStreamFilter ff_mp3_header_decompress_bsf={ AVBitStreamFilter ff_mp3_header_decompress_bsf={
"mp3decomp", .name = "mp3decomp",
0, .filter = mp3_header_decompress,
mp3_header_decompress,
}; };

View File

@ -49,7 +49,7 @@ static int noise(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const ch
} }
AVBitStreamFilter ff_noise_bsf={ AVBitStreamFilter ff_noise_bsf={
"noise", .name = "noise",
sizeof(int), .priv_data_size = sizeof(int),
noise, .filter = noise,
}; };

View File

@ -49,7 +49,6 @@ static int remove_extradata(AVBitStreamFilterContext *bsfc, AVCodecContext *avct
} }
AVBitStreamFilter ff_remove_extradata_bsf={ AVBitStreamFilter ff_remove_extradata_bsf={
"remove_extra", .name = "remove_extra",
0, .filter = remove_extradata,
remove_extradata,
}; };