|
|
@@ -1657,9 +1657,11 @@ static int decode_frame(AVCodecContext * avctx, void *data, int *got_frame_ptr, |
|
|
uint32_t header; |
|
|
uint32_t header; |
|
|
int ret; |
|
|
int ret; |
|
|
|
|
|
|
|
|
|
|
|
int skipped = 0; |
|
|
while(buf_size && !*buf){ |
|
|
while(buf_size && !*buf){ |
|
|
buf++; |
|
|
buf++; |
|
|
buf_size--; |
|
|
buf_size--; |
|
|
|
|
|
skipped++; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (buf_size < HEADER_SIZE) |
|
|
if (buf_size < HEADER_SIZE) |
|
|
@@ -1714,7 +1716,7 @@ static int decode_frame(AVCodecContext * avctx, void *data, int *got_frame_ptr, |
|
|
return ret; |
|
|
return ret; |
|
|
} |
|
|
} |
|
|
s->frame_size = 0; |
|
|
s->frame_size = 0; |
|
|
return buf_size; |
|
|
|
|
|
|
|
|
return buf_size + skipped; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
static void mp_flush(MPADecodeContext *ctx) |
|
|
static void mp_flush(MPADecodeContext *ctx) |
|
|
|