h264: Fix parameters to ff_er_add_slice() call
authorJanne Grunau <janne-libav@jannau.net>
Thu, 15 Nov 2012 15:21:41 +0000 (16:21 +0100)
committerJanne Grunau <janne-libav@jannau.net>
Fri, 16 Nov 2012 12:18:28 +0000 (13:18 +0100)
commite6160bda98641b7d4f86de15761ad2a962f21a36
tree1cc67ac8aae67a45526bf8be92b9c76285387acd
parent60b6b8c019723bdb3227e1476d706c7989bb94bf
h264: Fix parameters to ff_er_add_slice() call

s->mb_x is reset to zero a couple of lines above. It does not make
sense to call ff_er_add_slice() with 0 as endx when the end of the
macroblock row was reached. Fixes unnecessary and counterproductive
error resilience in https://bugzilla.libav.org/show_bug.cgi?id=394.

CC: libav-stable@libav.org
libavcodec/h264.c