Commit 0baf651b authored by Clément Bœsch's avatar Clément Bœsch

cmdutils: fix uninitialized variable (type) warning.

parent 7c14c242
......@@ -805,6 +805,7 @@ int check_stream_specifier(AVFormatContext *s, AVStream *st, const char *spec)
case 'a': type = AVMEDIA_TYPE_AUDIO; break;
case 's': type = AVMEDIA_TYPE_SUBTITLE; break;
case 'd': type = AVMEDIA_TYPE_DATA; break;
default: abort(); // never reached, silence warning
}
if (type != st->codec->codec_type)
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment