Use enum CodecID where appropriate.
authorCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Sun, 10 Jan 2010 08:57:20 +0000 (08:57 +0000)
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Sun, 10 Jan 2010 08:57:20 +0000 (08:57 +0000)
Originally committed as revision 21119 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/electronicarts.c

index 323f3a8..df9aded 100644 (file)
@@ -192,7 +192,7 @@ static int process_audio_header_elements(AVFormatContext *s)
         case 16: ea->audio_codec = CODEC_ID_MP3; break;
         case -1: break;
         default:
-            ea->audio_codec = 0;
+            ea->audio_codec = CODEC_ID_NONE;
             av_log(s, AV_LOG_ERROR, "unsupported stream type; revision2=%i\n", revision2);
             return 0;
         }