summaryrefslogtreecommitdiffstats
path: root/codec-cfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'codec-cfg.c')
-rw-r--r--codec-cfg.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/codec-cfg.c b/codec-cfg.c
index 66c721013e..afa33e5626 100644
--- a/codec-cfg.c
+++ b/codec-cfg.c
@@ -757,19 +757,19 @@ void codecs_uninit_free() {
}
codecs_t *find_audio_codec(unsigned int fourcc, unsigned int *fourccmap,
- codecs_t *start)
+ codecs_t *start, int force)
{
- return find_codec(fourcc, fourccmap, start, 1);
+ return find_codec(fourcc, fourccmap, start, 1, force);
}
codecs_t *find_video_codec(unsigned int fourcc, unsigned int *fourccmap,
- codecs_t *start)
+ codecs_t *start, int force)
{
- return find_codec(fourcc, fourccmap, start, 0);
+ return find_codec(fourcc, fourccmap, start, 0, force);
}
codecs_t* find_codec(unsigned int fourcc,unsigned int *fourccmap,
- codecs_t *start, int audioflag)
+ codecs_t *start, int audioflag, int force)
{
int i, j;
codecs_t *c;
@@ -806,6 +806,7 @@ codecs_t* find_codec(unsigned int fourcc,unsigned int *fourccmap,
return c;
}
}
+ if (force) return c;
}
}
return NULL;