diff --git a/libavformat/mov.c b/libavformat/mov.c
index 0e6e8dfe18aeb659eebe84eb06146ccbdb95065b..6d6d3d578749237c3e6170b3a332e888aa15e009 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1142,6 +1142,9 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
     switch (st->codec->codec_id) {
 #ifdef CONFIG_FAAD
     case CODEC_ID_AAC:
+#endif
+#ifdef CONFIG_VORBIS_DECODER
+    case CODEC_ID_VORBIS:
 #endif
     case CODEC_ID_MP3ON4:
         st->codec->sample_rate= 0; /* let decoder init parameters properly */