Commit 1c55fa94 authored by Rafaël Carré's avatar Rafaël Carré

Detect (and use) unknown codecs - idea by JPeg

parent 289a05e6
......@@ -61,6 +61,10 @@ function parse()
local score = 666
local bestcodec
for codec,_ in pairs(available) do
if pref[codec] == nil then
vlc.msg_warn( "Unknown codec: " .. codec )
pref[codec] = 42 -- try the 1st unknown codec if other fail
end
if pref[codec] < score then
bestcodec = codec
score = pref[codec]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment