Fix compilation against libav 54 and OGG-Theora extension detection

Change-Id: Id74688bcfeefae3c5904e0719d498a185930220e