bink: fix a check for the first frame.

Packet pts is a very unreliable indicator, use
AVCodecContext.frame_number instead.
bink demuxer: check malloc return value
bink demuxer: set framerate.