mirror of https://github.com/FFmpeg/FFmpeg.git
Without this cast, the BE_32() expression is sign extended when assigned to an uint64_t, since the uint8_t|uint8_t expression is promoted to an int. Also avoid undefined behaviour when left shifting an uint8_t by 24 by casting it to an uint32_t explicitly before shifting. Based on a patch by Michael Niedermayer. Signed-off-by: Martin Storsjö <martin@martin.st>pull/60/head
parent
bb95334c34
commit
ea7f79f937
1 changed files with 5 additions and 5 deletions
Loading…
Reference in new issue