Revision 8bb5d1c3 libavformat/cafdec.c

View differences:

libavformat/cafdec.c
257 257
            read_info_chunk(s, size);
258 258
            break;
259 259

  
260
        case MKBETAG('c','h','a','n'):
261
            if (size < 12)
262
                return AVERROR_INVALIDDATA;
263
            ff_read_chan_chunk(s, size, st->codec);
264
            break;
265

  
260 266
        default:
261 267
#define _(x) ((x) >= ' ' ? (x) : ' ')
262 268
            av_log(s, AV_LOG_WARNING, "skipping CAF chunk: %08X (%c%c%c%c), size %"PRId64"\n",

Also available in: Unified diff