[FFmpeg-cvslog] r16582 - trunk/libavcodec/mpegaudio_parser.c

michael subversion
Tue Jan 13 20:35:35 CET 2009


Author: michael
Date: Tue Jan 13 20:35:34 2009
New Revision: 16582

Log:
Let the mpeg audio parser correct the codec_id.

Modified:
   trunk/libavcodec/mpegaudio_parser.c

Modified: trunk/libavcodec/mpegaudio_parser.c
==============================================================================
--- trunk/libavcodec/mpegaudio_parser.c	Tue Jan 13 20:32:08 2009	(r16581)
+++ trunk/libavcodec/mpegaudio_parser.c	Tue Jan 13 20:35:34 2009	(r16582)
@@ -58,13 +58,16 @@ int ff_mpa_decode_header(AVCodecContext 
 
     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




More information about the ffmpeg-cvslog mailing list