0 means no data consumed, so it can trigger an infinite loop in the caller. CC:libav-stable@libav.org