Revision 5d6e4c16 libavcodec/tta.c

View differences:

libavcodec/tta.c
246 246

  
247 247
        if (s->is_float)
248 248
        {
249
            avctx->sample_fmt = SAMPLE_FMT_FLT;
249
            avctx->sample_fmt = AV_SAMPLE_FMT_FLT;
250 250
            av_log(s->avctx, AV_LOG_ERROR, "Unsupported sample format. Please contact the developers.\n");
251 251
            return -1;
252 252
        }
253 253
        else switch(s->bps) {
254
//            case 1: avctx->sample_fmt = SAMPLE_FMT_U8; break;
255
            case 2: avctx->sample_fmt = SAMPLE_FMT_S16; break;
256
//            case 3: avctx->sample_fmt = SAMPLE_FMT_S24; break;
257
            case 4: avctx->sample_fmt = SAMPLE_FMT_S32; break;
254
//            case 1: avctx->sample_fmt = AV_SAMPLE_FMT_U8; break;
255
            case 2: avctx->sample_fmt = AV_SAMPLE_FMT_S16; break;
256
//            case 3: avctx->sample_fmt = AV_SAMPLE_FMT_S24; break;
257
            case 4: avctx->sample_fmt = AV_SAMPLE_FMT_S32; break;
258 258
            default:
259 259
                av_log(s->avctx, AV_LOG_ERROR, "Invalid/unsupported sample format. Please contact the developers.\n");
260 260
                return -1;

Also available in: Unified diff