]> git.sesse.net Git - ffmpeg/blobdiff - cmdutils.c
cache: remove unused variable in cache_open
[ffmpeg] / cmdutils.c
index adf1b5fea39c129e05de6c1e07350adf90acee12..a7e82e65191c7e6bb3ffa4f27a939154f6418f9e 100644 (file)
@@ -1034,8 +1034,9 @@ int check_stream_specifier(AVFormatContext *s, AVStream *st, const char *spec)
 
             if (*endptr++ == ':') {
                 int stream_idx = strtol(endptr, NULL, 0);
-                return (stream_idx >= 0 && stream_idx < s->programs[i]->nb_stream_indexes &&
-                        st->index == s->programs[i]->stream_index[stream_idx]);
+                return stream_idx >= 0 &&
+                    stream_idx < s->programs[i]->nb_stream_indexes &&
+                    st->index == s->programs[i]->stream_index[stream_idx];
             }
 
             for (j = 0; j < s->programs[i]->nb_stream_indexes; j++)