avcodec/snowenc: fix constness of the AVFrame argument in encode_frame()