changeset 8587:b3f3d9ffab1c libavcodec

Let the mpeg audio parser correct the codec_id.
author michael
date Tue, 13 Jan 2009 19:35:34 +0000
parents d7d0cde5f308
children 93dbb3999cc8
files mpegaudio_parser.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mpegaudio_parser.c	Tue Jan 13 19:32:08 2009 +0000
+++ b/mpegaudio_parser.c	Tue Jan 13 19:35:34 2009 +0000
@@ -58,13 +58,16 @@
 
     switch(s->layer) {
     case 1:
+        avctx->codec_id = CODEC_ID_MP1;
         *frame_size = 384;
         break;
     case 2:
+        avctx->codec_id = CODEC_ID_MP2;
         *frame_size = 1152;
         break;
     default:
     case 3:
+        avctx->codec_id = CODEC_ID_MP3;
         if (s->lsf)
             *frame_size = 576;
         else