Set CODEC_CAP_SUBFRAMES for adpcm decoders
authorMåns Rullgård <mans@mansr.com>
Thu, 21 Jan 2010 12:57:24 +0000 (12:57 +0000)
committerMåns Rullgård <mans@mansr.com>
Thu, 21 Jan 2010 12:57:24 +0000 (12:57 +0000)
This makes ffmpeg stop printing millions of
  Multiple frames in a packet from stream 0
when decoding adpcm.

Originally committed as revision 21362 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/adpcm.c

index 6abe184..8d711b5 100644 (file)
@@ -1664,6 +1664,7 @@ AVCodec name ## _decoder = {                    \
     NULL,                                       \
     adpcm_decode_frame,                         \
     .long_name = NULL_IF_CONFIG_SMALL(long_name_), \
     NULL,                                       \
     adpcm_decode_frame,                         \
     .long_name = NULL_IF_CONFIG_SMALL(long_name_), \
+    .capabilities = CODEC_CAP_SUBFRAMES,        \
 };
 #else
 #define ADPCM_DECODER(id,name,long_name_)
 };
 #else
 #define ADPCM_DECODER(id,name,long_name_)