fixed start!=NULL in find_codec()

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@629 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi_esp 2001-04-24 22:55:52 +00:00
parent 8e847e4b33
commit f5e86684d4
1 changed files with 5 additions and 1 deletions

View File

@ -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)