[Ffmpeg-devel] H264 decoding problem

Uoti Urpala uoti.urpala
Sat Oct 14 10:25:56 CEST 2006

On Thu, 2006-10-12 at 23:39 +0200, Michael Niedermayer wrote:
> ive checked through the cabac.h asms in the .s file and it seems gcc didnt
> violate the constraints, so, sofar it seems that it was my fault not adding
> "memory" to the clobber list which caused the bug

The problem was that in decode_cabac_residual() gcc created a copy of
h->cabac->range on the stack and used it in inlined get_cabac_bypass()
while the asm changed the original value. So yes it occurred because the
asm definition didn't tell gcc it accessed that variable.

More information about the ffmpeg-devel mailing list