X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fpsxstr.c;h=4376e743c4fcd5cc8efabcc1d5fa077392179d74;hb=30bcd6a945ae296ef7b36a91cc21789a05de85d9;hp=744ae9445921bc924e8ea6da230bd02959de3a99;hpb=7b7c47c8f70e51d3835a6153c3e467e59acf8a8b;p=ffmpeg diff --git a/libavformat/psxstr.c b/libavformat/psxstr.c index 744ae944592..4376e743c4f 100644 --- a/libavformat/psxstr.c +++ b/libavformat/psxstr.c @@ -234,7 +234,6 @@ static int str_read_packet(AVFormatContext *s, pkt->stream_index = str->channels[channel].audio_stream_index; return 0; - break; default: av_log(s, AV_LOG_WARNING, "Unknown sector type %02X\n", sector[0x12]); /* drop the sector and move on */ @@ -259,11 +258,11 @@ static int str_read_close(AVFormatContext *s) } AVInputFormat ff_str_demuxer = { - "psxstr", - NULL_IF_CONFIG_SMALL("Sony Playstation STR format"), - sizeof(StrDemuxContext), - str_probe, - str_read_header, - str_read_packet, - str_read_close, + .name = "psxstr", + .long_name = NULL_IF_CONFIG_SMALL("Sony Playstation STR format"), + .priv_data_size = sizeof(StrDemuxContext), + .read_probe = str_probe, + .read_header = str_read_header, + .read_packet = str_read_packet, + .read_close = str_read_close, };