ffmpeg: Fix bitstream filters manipulating AVCodecContext

Fixes Ticket3715

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>