Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2012-10-28 04:22:47 +0400
committerMarton Balint <cus@passwd.hu>2012-11-01 18:46:18 +0400
commitfec39d99d63686cb70f47f33473f9607efe3c968 (patch)
tree9c75828bb48ed1881bc5bef6a36a214fa8d4d3df /ffplay.c
parentfdb933444add87e026b64639d0db83b0d5177c7b (diff)
ffplay: remove redundant !codec check
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ffplay.c b/ffplay.c
index beced86493..e3b156a4f2 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2307,8 +2307,7 @@ static int stream_component_open(VideoState *is, int stream_index)
opts = filter_codec_opts(codec_opts, avctx->codec_id, ic, ic->streams[stream_index], codec);
if (!av_dict_get(opts, "threads", NULL, 0))
av_dict_set(&opts, "threads", "auto", 0);
- if (!codec ||
- avcodec_open2(avctx, codec, &opts) < 0)
+ if (avcodec_open2(avctx, codec, &opts) < 0)
return -1;
if ((t = av_dict_get(opts, "", NULL, AV_DICT_IGNORE_SUFFIX))) {
av_log(NULL, AV_LOG_ERROR, "Option %s not found.\n", t->key);