diff options
author | 2001-04-24 22:55:52 +0000 | |
---|---|---|
committer | 2001-04-24 22:55:52 +0000 | |
commit | f5e86684d41bea89df2fab7da249d3b0921559e1 (patch) | |
tree | e3b083ff52419eb637ff61601067d2d2a7de2f75 /codec-cfg.c | |
parent | 8e847e4b33555769b0fa5e5ec11442d7cc7977d4 (diff) |
fixed start!=NULL in find_codec()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@629 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'codec-cfg.c')
-rw-r--r-- | codec-cfg.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/codec-cfg.c b/codec-cfg.c index 5f14caa983..97566764ff 100644 --- a/codec-cfg.c +++ b/codec-cfg.c @@ -593,6 +593,7 @@ codecs_t* find_codec(unsigned int fourcc,unsigned int *fourccmap, int i, j; codecs_t *c; +#if 0 if (start) { for (/* NOTHING */; start->name; start++) { for (j = 0; j < CODECS_MAX_FOURCC; j++) { @@ -603,7 +604,9 @@ codecs_t* find_codec(unsigned int fourcc,unsigned int *fourccmap, } } } - } else { + } else +#endif + { if (audioflag) { i = nr_acodecs; c = audio_codecs; @@ -612,6 +615,7 @@ codecs_t* find_codec(unsigned int fourcc,unsigned int *fourccmap, c = video_codecs; } for (/* NOTHING */; i--; c++) { + if(start && c<=start) continue; for (j = 0; j < CODECS_MAX_FOURCC; j++) { if (c->fourcc[j] == fourcc) { if (fourccmap) |