Otherwise the expression will be evaluated as unsigned, which will break when the result should be negative. CC:libav-stable@libav.org