fix audio for mog_op1a_prompeg_mpeg.mxf
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Mon, 2 Oct 2006 14:12:50 +0000 (14:12 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Mon, 2 Oct 2006 14:12:50 +0000 (14:12 +0000)
Originally committed as revision 6530 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mxf.c

index d0fb2f0..95c7916 100644 (file)
@@ -866,6 +866,8 @@ static int mxf_parse_structural_metadata(MXFContext *mxf)
                     st->codec->codec_id = CODEC_ID_PCM_S24BE;
                 else if (descriptor->bits_per_sample == 32)
                     st->codec->codec_id = CODEC_ID_PCM_S32BE;
+            } else if (st->codec->codec_id == CODEC_ID_MP2) {
+                st->need_parsing = 1;
             }
         }
         if (container_ul && container_ul->wrapping == Clip) {