avcodec encoder: get bytes per pixel from context if needed
authorTristan Matthews <le.businessman@gmail.com>
Wed, 2 Apr 2014 06:18:33 +0000 (02:18 -0400)
committerTristan Matthews <le.businessman@gmail.com>
Wed, 2 Apr 2014 09:07:35 +0000 (05:07 -0400)
commitf5a53d4ee1316bd42fbf7d62721901f24a5899be
tree2bb6d549770cd339399ddc3f147a10fe25407978
parentcff295639b1cd437af6ca93dd0a2a705e136a4b1
avcodec encoder: get bytes per pixel from context if needed

Falling back to 3 bytes broke the buffer allocation for BMP with ffmpeg, which
defaults to RGBA.

Fixes #9687
modules/codec/avcodec/encoder.c