[vlc-devel] [PATCH] fourcc: refactor Lookup
Zhao Zhili
wantlamy at gmail.com
Mon Jun 13 12:12:16 CEST 2016
---
src/misc/fourcc.c | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
index 51c36a1..d69c49b 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -49,18 +49,7 @@ static vlc_fourcc_t Lookup(vlc_fourcc_t fourcc, const
char **restrict dsc,
mapping = bsearch(&fourcc, mapv, mapc, sizeof (*mapv), fourcc_cmp);
if (mapping != NULL)
- {
- if (dsc != NULL)
- {
- desc = bsearch(&fourcc, dscv, dscc, sizeof (*dscv),
fourcc_cmp);
- if (desc != NULL)
- {
- *dsc = desc->desc;
- return mapping->fourcc;
- }
- }
fourcc = mapping->fourcc;
- }
desc = bsearch(&fourcc, dscv, dscc, sizeof (*dscv), fourcc_cmp);
if (desc == NULL)
--
1.9.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20160613/627e0bc9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fourcc-refactor-Lookup.patch
Type: text/x-patch
Size: 1006 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20160613/627e0bc9/attachment.bin>
More information about the vlc-devel
mailing list