summaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-06-02 13:58:28 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-06-02 15:36:50 +0200
commitcd0f9f00a2471891b692729d8e62c8979396a2ee (patch)
tree3385d55f5a7297c8e46e08780dd45cbd12bedbca /libavcodec/h264.c
parentdebbcfae6010f027a0334d70d0dbb7ddd912ad5a (diff)
downloadffmpeg-streaming-cd0f9f00a2471891b692729d8e62c8979396a2ee.zip
ffmpeg-streaming-cd0f9f00a2471891b692729d8e62c8979396a2ee.tar.gz
h264: try to better handle h264 streams that are slightly truncated
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 4e6d6a5..702d406 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -4032,7 +4032,7 @@ static int decode_slice(struct AVCodecContext *avctx, void *arg)
loop_filter(h, lf_x_start, s->mb_x + 1);
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,
"error while decoding MB %d %d, bytestream (%td)\n",
s->mb_x, s->mb_y,
OpenPOWER on IntegriCloud