diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c
index 323f3a83c2d9f34790b31ed62ed798f372681e97..df9aded9d3f7210553b50c0e5f1c1bdc0297e053 100644
--- a/libavformat/electronicarts.c
+++ b/libavformat/electronicarts.c
@@ -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;
         }