~ppsspp/ppsspp/ffmpeg

« back to all changes in this revision

Viewing changes to libavcodec/mlpdec.c

  • Committer: Henrik Rydgård
  • Date: 2014-01-03 10:44:32 UTC
  • Revision ID: git-v1:87c6c126784b1718bfa448ecf2e6a9fef781eb4e
Update our ffmpeg snapshot to a clone of the official repository.

This is because Maxim's at3plus support has been officially merged!

Show diffs side-by-side

added added

removed removed

Lines of Context:
363
363
     * substream is Stereo. Subsequent substreams' layouts are indicated in the
364
364
     * major sync. */
365
365
    if (m->avctx->codec_id == AV_CODEC_ID_MLP) {
 
366
        if (mh.stream_type != 0xbb) {
 
367
            avpriv_request_sample(m->avctx,
 
368
                        "unexpected stream_type %X in MLP",
 
369
                        mh.stream_type);
 
370
            return AVERROR_PATCHWELCOME;
 
371
        }
366
372
        if ((substr = (mh.num_substreams > 1)))
367
373
            m->substream[0].ch_layout = AV_CH_LAYOUT_STEREO;
368
374
        m->substream[substr].ch_layout = mh.channel_layout_mlp;
369
375
    } else {
 
376
        if (mh.stream_type != 0xba) {
 
377
            avpriv_request_sample(m->avctx,
 
378
                        "unexpected stream_type %X in !MLP",
 
379
                        mh.stream_type);
 
380
            return AVERROR_PATCHWELCOME;
 
381
        }
370
382
        if ((substr = (mh.num_substreams > 1)))
371
383
            m->substream[0].ch_layout = AV_CH_LAYOUT_STEREO;
372
384
        if (mh.num_substreams > 2)