mirror of https://github.com/mpv-player/mpv
100l :(
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5328 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
fbf84aa57e
commit
092bf60b8d
|
@ -698,12 +698,10 @@ codecs_t* find_codec(unsigned int fourcc,unsigned int *fourccmap,
|
||||||
if(!i) return NULL;
|
if(!i) return NULL;
|
||||||
for (/* NOTHING */; i--; c++) {
|
for (/* NOTHING */; i--; c++) {
|
||||||
if(start && c<=start) continue;
|
if(start && c<=start) continue;
|
||||||
if(c->flags&CODECS_FLAG_SELECTED) continue;
|
|
||||||
for (j = 0; j < CODECS_MAX_FOURCC; j++) {
|
for (j = 0; j < CODECS_MAX_FOURCC; j++) {
|
||||||
if (c->fourcc[j]==fourcc || c->driver==0) {
|
if (c->fourcc[j]==fourcc || c->driver==0) {
|
||||||
if (fourccmap)
|
if (fourccmap)
|
||||||
*fourccmap = c->fourccmap[j];
|
*fourccmap = c->fourccmap[j];
|
||||||
c->flags|=CODECS_FLAG_SELECTED;
|
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue