av: Cast AVContext::bit_rate to a guint before passing to varargs functions
authorSebastian Dröge <sebastian@centricular.com>
Wed, 14 Sep 2016 09:20:48 +0000 (11:20 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 14 Sep 2016 09:20:48 +0000 (11:20 +0200)
commit8443af343ec7dc026e27ab9cbf5d2ec47bd6fc4d
tree3737fd178129e0e4d6cfca95636b66834b227f74
parent77f4d2f06bddf74ade93c2705493793b2bb5c0d6
av: Cast AVContext::bit_rate to a guint before passing to varargs functions

We expect it to be a int or uint, however it changed the type to a
int64_t in later versions of ffmpeg. As such it would be passed as a 64
bit value to varargs functions, while the consumer of the arguments
assumes only 32 bits. This causes crashes.

https://bugzilla.gnome.org/show_bug.cgi?id=771092
ext/libav/gstavaudenc.c
ext/libav/gstavcodecmap.c
ext/libav/gstavvidenc.c