avcodec/encode: add missing assert to avcodec_receive_packet()