mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 01:22:30 +00:00
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:
parent
8e847e4b33
commit
f5e86684d4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user