avformat/astenc: avoid using AVCodecContext.frame_number
Theres no gurantee that the user application has initialized it
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>