projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86611ff
)
cmdutils: Allow calling filter_codec_opts without a set encoder
author
Martin Storsjö
<martin@martin.st>
Wed, 27 Feb 2013 21:21:06 +0000
(23:21 +0200)
committer
Martin Storsjö
<martin@martin.st>
Thu, 28 Feb 2013 16:30:40 +0000
(18:30 +0200)
In this case, no encoder specific options are filtered, only
options specific to that codec type in general.
Signed-off-by: Martin Storsjö <martin@martin.st>
cmdutils.c
patch
|
blob
|
history
diff --git
a/cmdutils.c
b/cmdutils.c
index 688f501840cc0ffbd2554bc92dac272252fb1a8c..fa5632672a376012586e4c072396fb2681c1d03f 100644
(file)
--- a/
cmdutils.c
+++ b/
cmdutils.c
@@
-1462,10
+1462,8
@@
AVDictionary *filter_codec_opts(AVDictionary *opts, enum AVCodecID codec_id,
if (!codec)
codec = s->oformat ? avcodec_find_encoder(codec_id)
: avcodec_find_decoder(codec_id);
- if (!codec)
- return NULL;
- switch (
codec->
type) {
+ switch (
st->codec->codec_
type) {
case AVMEDIA_TYPE_VIDEO:
prefix = 'v';
flags |= AV_OPT_FLAG_VIDEO_PARAM;