mxf: fix MP2 case

Testing mpegversion when mpegaudioversion was likely meant.

Similar tests in sys/androidmedia/gstamcaudiodec.c also test
mpegaudioversion with the same conditional code.

Coverity 206071
This commit is contained in:
Vincent Penquerc'h 2014-04-21 13:15:34 +01:00
parent 7659f3bec4
commit 60d7e45cab

View file

@ -988,7 +988,7 @@ mxf_mpeg_audio_get_descriptor (GstPadTemplate * tmpl, GstCaps * caps,
if (layer == 1) if (layer == 1)
md->spf = 384; md->spf = 384;
else if (layer == 2 || mpegversion == 1) else if (layer == 2 || mpegaudioversion == 1)
md->spf = 1152; md->spf = 1152;
else else
md->spf = 576; /* MPEG-2 or 2.5 */ md->spf = 576; /* MPEG-2 or 2.5 */