View | Details | Raw Unified
Collapse All | Expand All

(-)a/libavcodec/dtsdec.c (-2 / +3 lines)
 Lines 36-41   typedef struct DTSContext { Link Here 
36
    uint8_t buf[BUFFER_SIZE];
36
    uint8_t buf[BUFFER_SIZE];
37
    uint8_t *bufptr;
37
    uint8_t *bufptr;
38
    uint8_t *bufpos;
38
    uint8_t *bufpos;
39
    int flags;
39
} DTSContext;
40
} DTSContext;
40
41
41
static inline int16_t
42
static inline int16_t
 Lines 201-207   dts_decode_frame(AVCodecContext * avctx, void *data, int *data_size, Link Here 
201
        if(s->bufpos != s->buf + HEADER_SIZE)
202
        if(s->bufpos != s->buf + HEADER_SIZE)
202
            break;
203
            break;
203
204
204
        length = dts_syncinfo(s->state, s->buf, &flags, &sample_rate,
205
        length = dts_syncinfo(s->state, s->buf, &s->flags, &sample_rate,
205
                              &bit_rate, &frame_length);
206
                              &bit_rate, &frame_length);
206
        if(!length) {
207
        if(!length) {
207
            av_log(NULL, AV_LOG_INFO, "skip\n");
208
            av_log(NULL, AV_LOG_INFO, "skip\n");
 Lines 215-221   dts_decode_frame(AVCodecContext * avctx, void *data, int *data_size, Link Here 
215
    level = CONVERT_LEVEL;
216
    level = CONVERT_LEVEL;
216
    bias = CONVERT_BIAS;
217
    bias = CONVERT_BIAS;
217
218
218
    flags |= DTS_ADJUST_LEVEL;
219
    flags = s->flags | DTS_ADJUST_LEVEL;
219
    if(dts_frame(s->state, s->buf, &flags, &level, bias)) {
220
    if(dts_frame(s->state, s->buf, &flags, &level, bias)) {
220
        av_log(avctx, AV_LOG_ERROR, "dts_frame() failed\n");
221
        av_log(avctx, AV_LOG_ERROR, "dts_frame() failed\n");
221
        goto end;
222
        goto end;