h264: try to better handle h264 streams that are slightly truncated
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit cd0f9f00a2471891b692729d8e62c8979396a2ee) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
03275ed219
commit
46b99bb70c
@ -4032,7 +4032,7 @@ static int decode_slice(struct AVCodecContext *avctx, void *arg)
|
|||||||
loop_filter(h, lf_x_start, s->mb_x + 1);
|
loop_filter(h, lf_x_start, s->mb_x + 1);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (ret < 0 || h->cabac.bytestream > h->cabac.bytestream_end + 2) {
|
if (ret < 0 || h->cabac.bytestream > h->cabac.bytestream_end + 4) {
|
||||||
av_log(h->s.avctx, AV_LOG_ERROR,
|
av_log(h->s.avctx, AV_LOG_ERROR,
|
||||||
"error while decoding MB %d %d, bytestream (%td)\n",
|
"error while decoding MB %d %d, bytestream (%td)\n",
|
||||||
s->mb_x, s->mb_y,
|
s->mb_x, s->mb_y,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user