<div dir="ltr"><div>I'm not sure abour this part: should we do bsearch() on original fourcc when fourcc != mapping->fourcc?<br></div>Maybe I'm doing it wrong.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 13, 2016 at 6:12 PM, Zhao Zhili <span dir="ltr"><<a href="mailto:wantlamy@gmail.com" target="_blank">wantlamy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br>---<br> src/misc/fourcc.c | 11 -----------<br> 1 file changed, 11 deletions(-)<br><br>diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c<br>index 51c36a1..d69c49b 100644<br>--- a/src/misc/fourcc.c<br>+++ b/src/misc/fourcc.c<br>@@ -49,18 +49,7 @@ static vlc_fourcc_t Lookup(vlc_fourcc_t fourcc, const char **restrict dsc,<br> <br> mapping = bsearch(&fourcc, mapv, mapc, sizeof (*mapv), fourcc_cmp);<br> if (mapping != NULL)<br>- {<br>- if (dsc != NULL)<br>- {<br>- desc = bsearch(&fourcc, dscv, dscc, sizeof (*dscv), fourcc_cmp);<br>- if (desc != NULL)<br>- {<br>- *dsc = desc->desc;<br>- return mapping->fourcc;<br>- }<br>- }<br> fourcc = mapping->fourcc;<br>- }<br> <br> desc = bsearch(&fourcc, dscv, dscc, sizeof (*dscv), fourcc_cmp);<br> if (desc == NULL)<span class="HOEnZb"><font color="#888888"><br>-- <br>1.9.1<br><br></font></span></div>
</blockquote></div><br></div>