Browse Source

cmdutils: fix uninitialized variable (type) warning.

tags/n0.9
Clément Bœsch 13 years ago
parent
commit
0baf651bc1
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      cmdutils.c

+ 1
- 0
cmdutils.c View File

@@ -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;


Loading…
Cancel
Save