View | Details | Raw Unified
Collapse All | Expand All

(-)a/libavcodec/dtsdec.c (-1 / +1 lines)
 Lines 191-197   dts_decode_frame(AVCodecContext * avctx, void *data, int *data_size, Link Here 
191
191
192
        len = end - start;
192
        len = end - start;
193
        if(!len)
193
        if(!len)
194
            break;
194
            return start - buff;
195
        if(len > s->bufpos - s->bufptr)
195
        if(len > s->bufpos - s->bufptr)
196
            len = s->bufpos - s->bufptr;
196
            len = s->bufpos - s->bufptr;
197
        memcpy(s->bufptr, start, len);
197
        memcpy(s->bufptr, start, len);